Interesting! Cool!

I should look at the header file in the System Python...

I had to patch the Python.h in the standard Python distribution to have
the "ifdef 64-bit" conditional code, so that the single header file works
with both 32- and 64-bit.

NOTE that the patches I used in the modified MacPorts came from Apple:
http://www.opensource.apple.com/darwinsource/10.5.2/python-30.1.2/

> On May 29, 2008, at 5:13 PM, Boyd Waters wrote:
>
>> The MacPorts 2.5.2 doesn't have my 64-bit hacks in it.
>
> Are there any changes needed to the python executable binary to
> support 64bits?  I compiled a quick 64bit python executable as a
> companion to the system's Python like so:
>
> gcc -arch x86_64 -arch ppc64 -I/System/Library/Frameworks/
> Python.framework/Headers -lpython2.5 -o python64 Modules/python.c
>
> Tested OK with gdal-python.  sys.maxint gives the 64bit value.
>
>>
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> First Pogril: Why is life like sticking your head in a bucket filled
> with hyena offal?
> Second Pogril: I don't know.  Why IS life like sticking your head in a
> bucket filled with hyena offal?
> First Pogril: I don't know either.  Wretched, isn't it?
>
> -HitchHiker's Guide to the Galaxy
>
>


~ boyd

Boyd Waters
National Radio Astronomy Observatory
Socorro, New Mexico
http://www.aoc.nrao.edu/~bwaters

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to