Something I noticed with the Apple Python is that /usr/bin/python
(which is it's own binary and not a symlink) *only* responds to the
env variable VERSIONER_PYTHON_PREFER_32_BIT (I think that's the
name). While /usr/bin/python2.6 (which is a symlink to the executable
in the framework) *only* responds to the arch command.
So, it looks like you configuration is using the env variable method.
I don't compile my own Python, so I don't know if there is a
configuration option to set this behavior.
On Oct 25, 2009, at 4:31 PM, Robin wrote:
Hi,
I've been struggling with 32 vs 64 bit python on snow leopard. I built
an intel universal with:
./build-installer.py --sdk-path=/Developer/SDKs/MacOSX10.6.sdk/
--dep-target=10.6 --universal-archs=intel
It looks like it built correctly:
robin-mbp:bin robince$ file ./python2.6
./python2.6: Mach-O universal binary with 2 architectures
./python2.6 (for architecture i386): Mach-O executable i386
./python2.6 (for architecture x86_64): Mach-O 64-bit executable
x86_64
But I am unable to select 32 vs 64 bit with arch:
robin-mbp:bin robince$ arch -x86_64 ./python2.6 -c "import sys; print
sys.maxint"
9223372036854775807
robin-mbp:bin robince$ arch -i386 ./python2.6 -c "import sys; print
sys.maxint"
9223372036854775807
which does work with the system python:
robin-mbp:~ robince$ arch -i386 /usr/bin/python2.6 -c "import sys;
print sys.maxint"
2147483647
robin-mbp:~ robince$ arch -x86_64 /usr/bin/python2.6 -c "import sys;
print sys.maxint"
9223372036854775807
What am I missing?
Cheers
Robin
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Time is an illusion - lunchtime doubly so."
- Ford Prefect
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig