Python 2.7 and OS SDK?
Python 2.7 and OS SDK?
- Subject: Python 2.7 and OS SDK?
- From: Stonewall Ballard <email@hidden>
- Date: Wed, 15 Sep 2010 10:02:40 -0400
I'm using a python script in a script step of an Xcode 3.2 target. I need to use a feature from Python 2.7, so I installed that using port. It works fine in a newly-created test project.
My original project, however, failed to build because it uses a base SDK of 10.5, and python 2.7 threw an error:
IOError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.6" during configure
This seems rather puzzling to me, since the script is run as a build step, not as part of the product.
The error comes from sysconfig.py, where it runs a block with this comment:
# On MacOSX we need to check the setting of the environment variable
# MACOSX_DEPLOYMENT_TARGET: configure bases some choices on it so
# it needs to be compatible.
I can see this being useful when building python, but not when just running it.
A workaround is to add
MACOSX_DEPLOYMENT_TARGET=10.6
right before the python command. This seems unsafe to me, though.
Is there a more suitable workaround? If this is a python bug, it seems very deep-seated.
Thanks.
- Stoney
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden