[Pythonmac-SIG] How-To upgrade Apples python installation in Mac OS
X 10.3 from python 2.3 to 2.4
Robert Valsjö
robert at xtrafone.com
Wed Dec 8 10:06:50 CET 2004
How to upgrade Apples python installation in Mac OS X 10.3 from python
2.3 to 2.4
* Download python sourde from
http://www.python.org/ftp/python/2.4/Python-2.4.tgz
Save the source on ~/Desktop
>cd ~/Desktop
>tar zxvf Python-2.4.tgz
Download http://www.merzwaren.com/bin/waste/waste-21b1.sit
Save it in ~/Desktop
Unpack waste-21b1.sit and copy all contents to a folder called waste.
>cd ~/Desktop
You should now have one folder called Python-2.4 and one folder called
waste on the desktop.
Now you must patch your Apple python installation:
>cd
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
config/
>emacs Makefile
Change in Makefile:
LDSHARED= $(CC) $(LDFLAGS) -bundle -framework $(PYTHONFRAMEWORK)
BLDSHARED= $(CC) $(LDFLAGS) -bundle -framework $(PYTHONFRAMEWORK)
to
LDSHARED= env MACOSX_DEPLOYMENT_TARGET=10.3 $(CC) $(LDFLAGS) -bundle
-undefined dynamic_lookup
BLDSHARED= env MACOSX_DEPLOYMENT_TARGET=10.3 $(CC) $(LDFLAGS) -bundle
-undefined dynamic_lookup
Start building:
>cd ~/Desktop/Python-2.4
>MACOSX_DEPLOYMENT_TARGET=10.3
>export MACOSX_DEPLOYMENT_TARGET
>env MACOSX_DEPLOYMENT_TARGET=10.3 ./configure --enable-framework
>make
>make frameworkinstall
>make frameworkinstallextras
Change you PATH:
>emacs ~/.bashrc
Add:
PATH=/usr/local/bin:$PATH
export PATH
This seems to work for me. Please let me know if something is missing.
Robert Valsjö
Xtrafone
www.xtrafone.com
E-mail: robert at xtrafone.com
More information about the Pythonmac-SIG
mailing list