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

Fixed compilation on MacOS platforms where Python default target is <10.9 #41

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

javabrett
Copy link
Contributor

With this change, you can still build with Anaconda current Python, even though it is built for minimum MacOS 10.7.

Modified setup.py to set env MACOSX_DEPLOYMENT_TARGET=10.9 when the build
MacOS is that or newer, but the default MACOSX_DEPLOYMENT_TARGET (when absent)
is <10.9, which happens when the running Python targets <10.9 min.

This happens for example when running a current Anaconda Python, which
has target 10.7.

This fix taken verbatim from similar in Pandas,
pandas-dev/pandas#24274 .

Fixed #39.

…10.9.

Modified setup.py to set env MACOSX_DEPLOYMENT_TARGET=10.9 when the build
MacOS is that or newer, but the default MACOSX_DEPLOYMENT_TARGET (when absent)
is <10.9, which happens when the running Python targets <10.9 min.

This happens for example when running a current Anaconda Python, which
has target 10.7.

This fix taken verbatim from similar in Pandas,
pandas-dev/pandas#24274 .

Fixed wmayner#39.
@wmayner wmayner merged commit e0460b2 into wmayner:develop Jun 17, 2019
@wmayner
Copy link
Owner

wmayner commented Jun 17, 2019

Looks good, thanks!

@javabrett javabrett deleted the 39-macos-deployment-target branch June 17, 2019 21:38
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.

pyemd not building on MacOS X "Mojave" + Python 3.7
2 participants