[MacPorts] #18066: pyrex hardcodes MACOSX_DEPLOYMENT_TARGET to 10.3

MacPorts noreply at macports.org
Sat Jan 17 11:30:57 PST 2009


#18066: pyrex hardcodes MACOSX_DEPLOYMENT_TARGET to 10.3
---------------------------------+------------------------------------------
 Reporter:  harry@…              |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:  Port Bugs                            
Component:  ports                |     Version:  1.7.0                                
 Keywords:                       |        Port:  py-pyrex                             
---------------------------------+------------------------------------------

Comment(by harry@…):

 Oops, I meant to say that other ports using pyrex fail to build.  I'm
 trying to install py-glewpy, which has a dependency on python2.4.  The
 error is:

 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-glewpy/work/glewpy-0.7.4" &&
 /opt/local/bin/python2.4 setup.py build " returned error 1
 Command output: Traceback (most recent call last):
   File "setup.py", line 43, in ?
     cmdclass = {'build_ext': build_ext}
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py",
 line 123, in setup
     dist.parse_config_files()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
 line 339, in parse_config_files
     filenames = self.find_config_files()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
 line 302, in find_config_files
     check_environ()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/util.py",
 line 209, in check_environ
     os.environ['PLAT'] = get_platform()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/util.py",
 line 78, in get_platform
     cfgvars = get_config_vars()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/sysconfig.py",
 line 488, in get_config_vars
     func()
   File
 "/opt/local/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.3" but "10.5" during configure

 IIRC the import of pyrex sets MACOSX_DEPLOYMENT_TARGET to 10.3 regardless
 of the actual OS version.

-- 
Ticket URL: <http://trac.macports.org/ticket/18066#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list