Skip to content

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