List Info

Thread: Re: Strange failure on 'python setup.py build' after 10.4.10 update




Re: Strange failure on 'python setup.py build' after 10.4.10 update
country flaguser name
United Kingdom
2007-08-31 07:17:23

From: cygnusxlistmac.com">cygnusxlistmac.com
Date: 30 August 2007 23:26:46 BDT
To: pythonmac-sigpython.org">pythonmac-sigpython.org
Subject: [Pythonmac-SIG] Strange failure on 'python setup.py build' after 10.4.10 update


My G5 at work has started spitting out this message when I try to build a python package from source.  The previous week I completed many builds with no problem.  I did similar builds on my home system with no problem.

The major change at work was I finally installed the 10.4.10 update (and suddenly had to change my $PATH to get python 2.4 back!) and my home system is still at 10.4.9.

I would check that the default python is in fact 2.4 or whatever version you think it should be and not an earlier version. 
You may have had an Apple build of python included in this update.
This would overwrite any symbolic links to the 2.4 install you made after the original OS install.
Which would explain why you had to change the $PATH
Certainly  doing  a full install of XCode will cause the default python to revert to 2.3

Best 
Ed
Is this a known issue & I'm behind the times or is this new?

Thanks,
Tom

wise 9% python setup.py build
Traceback (most recent call last):
  File “setup.py“, line 693, in ?
    classifiers = [
  File “/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/core.py“, line 123, in setup
    dist.parse_config_files()
  File “/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 “/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py“, line 302, in find_config_files
    check_environ()
  File “/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/util.py“, line 209, in check_environ
    os.environ['PLAT'] = get_platform()
  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.4“ but “10.3“ during configure

--
W.T. Bridgman, Ph.D.
Physics & Astronomy




Re: Strange failure on 'python setup.py build' after 10.4.10 update
country flaguser name
United States
2007-08-31 21:42:57
On Aug 31, 2007, at 8:17 AM, Edward Hartley wrote:

>>
>> From: cygnusxlistmac.com
>> Date: 30 August 2007 23:26:46 BDT
>> To: pythonmac-sigpython.org
>> Subject: [Pythonmac-SIG] Strange failure on 'python
setup.py  
>> build' after 10.4.10 update
>>
>>
>> My G5 at work has started spitting out this message
when I try to  
>> build a python package from source.  The previous
week I completed  
>> many builds with no problem.  I did similar builds
on my home  
>> system with no problem.
>>
>> The major change at work was I finally installed
the 10.4.10  
>> update (and suddenly had to change my $PATH to get
python 2.4  
>> back!) and my home system is still at 10.4.9.
>>
> I would check that the default python is in fact 2.4 or
whatever  
> version you think it should be and not an earlier
version.
> You may have had an Apple build of python included in
this update.
> This would overwrite any symbolic links to the 2.4
install you made  
> after the original OS install.
> Which would explain why you had to change the $PATH
> Certainly  doing  a full install of XCode will cause
the default  
> python to revert to 2.3

Deleting MACOSX_DEPLOYMENT_TARGET enabled me to run the
builds.  I  
notice my laptop does not have that defined at all.

The problem machine is a clean install so there were no
older pythons  
installed.

I had rarely set the PATH after installing the main
MacPython package  
it would always use the new version.  Of course, if that was
working  
due to a link, it would certainly explain the behavior I
encountered.

Thanks,
Tom
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )