[Pythonmac-SIG] Official 'right way' to create a universal build of Python?
Mark Dickinson
dickinsm at gmail.com
Tue Apr 14 19:14:20 CEST 2009
This question has probably been asked and answered before,
but I've failed to find anything in the archives.
What's the 'correct' way to create a universal build of Python?
Specifically, I have two machines:
(1) a Macbook Pro (Core 2 Duo) running OS X 10.5, and
(2) an iBook G4 running OS X 10.4.
and a fresh checkout of the py3k branch from svn.python.org.
I have a fairly limited goal: I want to create a universal
(32-bit Intel/32-bit PPC) build on the 10.5/Intel machine,
transfer it to the 10.4/PPC machine and then run the
testsuite. (This has to do with making sure that
a planned checkin is compatible with universal builds;
see the (long) thread at
http://mail.python.org/pipermail/python-dev/2009-April/088417.html
).
What are the commands that I should execute on the
Macbook?
I tried:
./configure --with-universal-archs=32-bit --enable-framework
--enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.4 && make
This seems to give me the right thing:
Macintosh-4:py3k-short-float-repr dickinsm$ file python.exe
python.exe: Mach-O universal binary with 2 architectures
python.exe (for architecture ppc): Mach-O executable ppc
python.exe (for architecture i386): Mach-O executable i386
Having done this, how do I package things up to transfer
them to the iBook? What files need to be transferred?
Mark
More information about the Pythonmac-SIG
mailing list