[Pythonmac-SIG] Building 2.4
Robert Valsjö
robert at xtrafone.com
Sun Dec 5 20:21:31 CET 2004
On 2004-12-02, at 16.11, Bob Ippolito wrote:
> On Dec 2, 2004, at 10:00, Samuel M.Smith wrote:
>
>> Would anyone care to post step by step instructions for building a
>> framework version of Python 2.4
>> that will peacefully cohabitate with the built in OS X Python 2.3.
>>
>> Does it build out of the box from the source?
>
> Patch your config/Makefile of your existing Python 2.3.0 installation
> (see a recent email of mine on the subject)
> Fetch 2.4 sources
>
> From the 2.4 source directory do the following:
>
> env MACOSX_DEPLOYMENT_TARGET=10.3 ./configure --enable-framework
> make
> sudo make frameworkinstall
>
> You probably want to add /usr/local/bin early on in your path if you
> haven't already, you may want to delete /usr/local/bin/python if you
> want python 2.3 to be "the default", because there is also a symlink
> named python2.4 that you could use.
>
> -bob
Hi!
When I do this I get:
esac
Traceback (most recent call last):
File "./setup.py", line 1061, in ?
class PyBuildInstallLib(install_lib):
File "./setup.py", line 1067, in PyBuildInstallLib
so_ext = sysconfig.get_config_var("SO")
File "/Users/robert/Desktop/Python-2.4/Lib/distutils/sysconfig.py",
line 509, in get_config_var
return get_config_vars().get(name)
File "/Users/robert/Desktop/Python-2.4/Lib/distutils/sysconfig.py",
line 486, in get_config_vars
func()
File "/Users/robert/Desktop/Python-2.4/Lib/distutils/sysconfig.py",
line 371, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET
mismatch: now "" but "10.3" during configure
make: *** [sharedmods] Error 1
Any suggestion?
/rob
Robert Valsjö
Xtrafone
www.xtrafone.com
E-mail: robert at xtrafone.com
More information about the Pythonmac-SIG
mailing list