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

Consider PYTHONFRAMEWORK when cross-compiling #2233

Merged
merged 2 commits into from Mar 17, 2022
Merged

Conversation

kmp1
Copy link

@kmp1 kmp1 commented Mar 17, 2022

When cross compiling on macos the PYTHONFRAMEWORK setting wasn't considered, though it is in the regular build process.

This means that the build system believes it is a static Python when, actually, it's shared. This adds an extra check to make from_sysconfigdata much more similar to from_interpreter in that regard.

…operty based on PYTHONFRAMEWORK in addition to Py_ENABLE_SHARED in order that a macos Framework build is considered shared just like the logic in from_interpreter
Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

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

Looks correct to me, thanks!

@kmp1
Copy link
Author

kmp1 commented Mar 17, 2022

Didn't know you had a code coverage check - I've added an additional test for this too.

@messense messense merged commit 3eb654c into PyO3:main Mar 17, 2022
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.

None yet

2 participants