Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyo3-macros-backend: Replace pyo3-build-config with abi3 feature #2243

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

ravenexp
Copy link
Contributor

Python 3.6 and older are not supported by the current PyO3 version,
so the removed interpreter version check was a no-op.

pyo3_build_config::get() attempts to read a config file from disk
when PyO3 is cross-compiling, which is probably bad for rust-analyzer
and other IDEs that attempt to sandbox the proc macro code.

Python 3.6 and older are not supported by the current PyO3 version,
so the removed interpreter version check was a no-op.

`pyo3_build_config::get()` attempts to read a config file from disk
when PyO3 is cross-compiling, which is probably bad for rust-analyzer
and other IDEs that attempt to sandbox the proc macro code.
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha this is an excellent observation!

It used to not be possible when we also needed to support Python 3.6 (which didn't have fastcall). However, for now this method works well and I agree is more reliable.

@davidhewitt davidhewitt merged commit 60d42b0 into PyO3:main Mar 23, 2022
@ravenexp ravenexp deleted the simple-fastcall branch April 4, 2022 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants