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

Using a stricter check to see if Python was installed as a framework. #1613

Merged
merged 1 commit into from Jan 10, 2013

Conversation

mdehoon
Copy link
Contributor

@mdehoon mdehoon commented Dec 20, 2012

Using a stricter check to see if Python was installed as a framework. Also, because of the recurring problems with non-framework Pythons, importing the Mac OS X backend will now fail (instead of just issuing a warning) if Python is not installed as a framework. This patch uses the WITH_NEXT_FRAMEWORK macro in pyconfig.h to determine if Python is installed as a framework. This is safer than the previous approach using CGMainDisplayID().

This is a bug fix for issue 665 (#665).

… Also, because of the recurring problems with non-framework Pythons, importing the Mac OS X backend will now fail (instead of just issuing a warning) if Python is not installed as a framework.
@asmeurer
Copy link

I can confirm that this works as expected.

@asmeurer
Copy link

I also checked in Python 3 non-framework (I didn't check Python 3 framework because I don't have numpy installed there and I didn't want to do it).

@mdehoon
Copy link
Contributor Author

mdehoon commented Dec 20, 2012

Thanks. I have checked with Python 3 framework; it works as expected.

efiring added a commit that referenced this pull request Jan 10, 2013
Using a stricter check to see if Python was installed as a framework.
@efiring efiring merged commit 9f74de0 into matplotlib:master Jan 10, 2013
@anntzer anntzer mentioned this pull request Aug 13, 2018
6 tasks
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

3 participants