[Pythonmac-SIG] 64-bit Python?
Ronald Oussoren
ronaldoussoren at mac.com
Wed Jun 4 07:50:39 CEST 2008
On 2 Jun, 2008, at 1:32, Boyd Waters wrote:
> 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/
I'll probably commit a patch that enables 4-way universal builds for
Python 2.6 on Leopard later this week. That patch is more involved
than just patching a header file, I've also enabled building most of
the Carbon bindings in 64-bit mode (by disabling everything that isn't
supported in 64-bit mode).
The patch should be complete by now, I just have to do some more
testing before I commit.
Ronald
>
>
>> 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 at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080604/c5abad46/attachment.bin>
More information about the Pythonmac-SIG
mailing list