building py-pyobjc2 gives $MACOSX_DEPLOYMENT_TARGET mismatch

Harry van der Wolf hvdwolf at gmail.com
Thu May 28 09:06:30 PDT 2009


Hi,

I have the following settings in my  macports.conf:
# MACOSX_DEPLOYMENT_TARGET
universal_target        10.4

# the SDK "sysroot" to use
universal_sysroot       /Developer/SDKs/MacOSX10.4u.sdk

# machine architectures
universal_archs         ppc i386

I'm now trying to build py-game which needs py-pyobjc2 as dependency.
Universal didn't work, but that's no problem as I only need this one on my
own macbook. So, I tried to built py-game with -universal.

All went fine to py-pyobjc2 which menations
"distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
mismatch: now "10.5" but "10.4" during configure".
I did a port clean of py-pyobjc2 and changed the 10.4 setting to 10.5 and
tried to build py-pyobjc2 again. The same error still occurred, so I changed
it back to 10.4.

What can I do about this?


Below the error message.



--->  Building py-pyobjc2
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pyobjc2/work/pyobjc-core"
&& /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: Traceback (most recent call last):
  File "setup.py", line 4, in ?
    ez_setup.use_setuptools()
  File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pyobjc2/work/pyobjc-core/ez_setup/__init__.py",
line 81, in use_setuptools
    import setuptools
  File "/opt/local/lib/python2.4/site-packages/setuptools/__init__.py", line
2, in ?
    from setuptools.extension import Extension, Library
  File "/opt/local/lib/python2.4/site-packages/setuptools/extension.py",
line 2, in ?
    from dist import _get_unpatched
  File "/opt/local/lib/python2.4/site-packages/setuptools/dist.py", line 5,
in ?
    from setuptools.command.install import install
  File
"/opt/local/lib/python2.4/site-packages/setuptools/command/__init__.py",
line 13, in ?
    from distutils.command.bdist import bdist
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/bdist.py",
line 29, in ?
    class bdist (Command):
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/bdist.py",
line 33, in bdist
    user_options = [('bdist-base=', 'b',
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/util.py",
line 78, in get_platform
    cfgvars = get_config_vars()
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/sysconfig.py",
line 488, in get_config_vars
    func()
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/sysconfig.py",
line 373, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch:
now "10.5" but "10.4" during configure


Harry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090528/579288ed/attachment.html>


More information about the macports-users mailing list