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-build-config: Inline the PYO3_NO_PYTHON switch #2276

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

ravenexp
Copy link
Contributor

@ravenexp ravenexp commented Apr 6, 2022

This patch folds the PYO3_NO_PYTHON + abi3 special case into
the existing native and cross compilation code paths.

The cross compilation route is now guaranteed to behave the same
whether PYO3_NO_PYTHON is set or not (except for sysconfigdata
discovery for the Unix targets).

The native compilation route now stores the hardcoded abi3 interpreter
configuration in place of the discovered configuration blob.

Still working to pave the way for #2231

This patch folds the `PYO3_NO_PYTHON` + `abi3` special case into
the existing native and cross compilation code paths.

The cross compilation route is now guaranteed to behave the same
whether `PYO3_NO_PYTHON` is set or not (except for sysconfigdata
discovery for the Unix targets).

The native compilation route now stores the hardcoded abi3 interpreter
configuration in place of the discovered configuration blob.
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.

Thanks, a nice simplification 👍

@davidhewitt davidhewitt merged commit d13a498 into PyO3:main Apr 6, 2022
@ravenexp ravenexp deleted the inline-no-python branch April 6, 2022 10:54
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