[Pythonmac-SIG] Running "freeze" on non-framework Python/universal binary issues

Kevin Walzer kw at kevin-walzer.com
Thu Jul 20 18:54:13 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to learn how to "freeze" an application that links against a
non-framework build of Python. The basic mechanism works fine when I try
 a vanilla install of PPC Python 2.4 via Fink:

/sw/bin/python freeze.py hello.py
...lots of messages
make
....lots more messages
./hello
Hello world...
Kevin-Walzers-Computer:~/python24-fat/Tools/freeze kevin$ file hello
hello: Mach-O executable ppc

"freeze" is having problems with my non-framework "universal" build of
Python 2.4, however. It seems to be gagging on the "arch" flags. Here's
a typical error message:

/usr/bin/ld: warning M_rfc822.o cputype (18, architecture ppc) does not
match cputype (7) for specified -arch flag: i386 (file not loaded)

I probably need to figure out a way to get the right flags passed on to
"freeze" or "make" so that the i386 object files are built also; right
now it's only outputting ppc files. Here's the command that runs:

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
- -I/usr/local/python-unix/include/python2.4
- -I/usr/local/python-unix/include/python2.4 -c M_traceback.c


Any advice?

(I'm trying "freeze" because py2app doesn't seem to play nicely with
non-framework builds, and I have no clue how to fix it.)

- --
Kevin Walzer
Poetic Code
http://www.kevin-walzer.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEv7U1rTC5hIgjqTMRAi1kAKCKeL5DeE44ff873gSvdPMQnmt2BQCghN6W
JFPOJi2dzH20pgNdmByZzI4=
=Q1F6
-----END PGP SIGNATURE-----


More information about the Pythonmac-SIG mailing list