Python MACOSX_DEPLOYMENT_TARGET mismatch

Harry van der Wolf hvdwolf at gmail.com
Thu Mar 4 04:43:40 PST 2010


When I try to install whichever python package, I get the following error:
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch:
now "10.5" but "10.4" during configure

When I do:  "which python", I:q
 get:
/opt/local/bin/python
And "python --version" gives "Python 2.6.4"
in /opt/local/etc/select/python I do have the softlink "current -> python26"

In my /Library/Frameworks/Python.framework/Versions/2.6/Headers/pyconfig.h I
do have the lines:
/* Define if compiling using MacOS X 10.5 SDK or later. */
#define HAVE_OSX105_SDK 1

Should I set this value to "#define HAVE_OSX105_SDK 0"?
note: I already tried this and logged out/logged in, but it didn't change
anything.



In my macports.conf I have since a very long time (over multiple macports
versions)  the following setting.
# MACOSX_DEPLOYMENT_TARGET
universal_target        10.4

Currently I'm on macports 1.8.1.

How can I overcome this python mismatch error?

best,
Harry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100304/f0ecb02a/attachment.html>


More information about the macports-users mailing list