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

Merged
merged 1 commit into from Jan 10, 2013

Projects

None yet

3 participants

@mdehoon
Collaborator
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).

@mdehoon mdehoon 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.
30a8bca
@asmeurer

I can confirm that this works as expected.

@asmeurer

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
Collaborator
mdehoon commented Dec 20, 2012

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

@efiring efiring merged commit 9f74de0 into matplotlib:master Jan 10, 2013

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment