FAQ
Hi group,

When starting a distutils script (which I mostly consider as a black
box) distutils crashes with the following traceback:

Traceback (most recent call last):
File "pyrexcompile.py", line 50, in <module>
cmdclass = {'build_ext': build_ext})
File "/sw/lib/python2.5/distutils/core.py", line 125, in setup
dist.parse_config_files()
File "/sw/lib/python2.5/distutils/dist.py", line 366, in
parse_config_files
filenames = self.find_config_files()
File "/sw/lib/python2.5/distutils/dist.py", line 329, in
find_config_files
check_environ()
File "/sw/lib/python2.5/distutils/util.py", line 208, in
check_environ
os.environ['PLAT'] = get_platform()
File "/sw/lib/python2.5/distutils/util.py", line 78, in get_platform
cfgvars = get_config_vars()
File "/sw/lib/python2.5/distutils/sysconfig.py", line 493, in
get_config_vars
func()
File "/sw/lib/python2.5/distutils/sysconfig.py", line 378, in
_init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
mismatch: now "10.3" but "10.5" during configure

The script is used to trigger pyrex compilation. I am using Pyrex
0.9.6.4.

I set the environment variable to 10.5 manually from the bash. I also
hacked the distutils script and manually set it in os.environ to 10.5.
Googling for the error message did not help a lot, either.

I am running Mac OS X 10.5 on an Intel processor. I have distutils
verison 2.5.1 running on a Python 2.5.2 installed via fink.

Any help would be greatly appreciated!

Regards,
-Justin

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedMar 26, '08 at 7:39p
activeMar 26, '08 at 7:39p
posts1
users1
websitepython.org

1 user in discussion

Justin S Bayer: 1 post

People

Translate

site design / logo © 2021 Grokbase