[Insight-developers] Re: python 2.5 fix

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Jul 10 16:15:22 EDT 2007


I can run the tests with python 2.4 without problem, both on 32 an 64  
bits - I'll run them tomorrow.
My problem is with python 2.5 and a 64 bits system.
I can't think of any reason why Brad's change may brake anything, but  
who knows :-)

Le 10 juil. 07 à 22:05, Erik Anderson a écrit :

> I have gotten it working on both 64-bit Linux (Ubuntu 7.04) as well  
> as Mac OSX.  I have not tried it with Python 2.4, though.  I will  
> try to find a good way to do this without compromising my working  
> environment.
>
> Erik
>
> On Tue, 10 Jul 2007 22:01:57 +0200
>  Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>> Le 10 juil. 07 à 20:01, Brad King a écrit :
>>> Gaëtan Lehmann wrote:
>>>> It's better with the patch :-)
>>>> Le 10 juil. 07 à 12:29, Gaëtan Lehmann a écrit :
>>>>>
>>>>> Hi,
>>>>>
>>>>> Erik Anderson has provided a fix for the build problem with   
>>>>> python  2.5. A patch is attached.
>>>>> All the python tests are OK.
>>>>>
>>>>> Can it be applied to cableswig?
>>>
>>> I do not think the type "Py_ssize_t" exists before python 2.5,  
>>> so  this patch:
>>>
>>> -  int psize = 0;
>>> +  Py_ssize_t psize = 0;
>>>
>>> will break builds with earlier python versions.  Please try this   
>>> fix instead:
>>>
>>> #if defined(PY_SSIZE_T_MAX)
>>>  Py_ssize_t psize = 0;
>>> #else
>>>  int psize = 0;
>>> #endif
>> Yes, your right.
>> My 64 bit host runs a development distro and is down currently  
>> after  a broken update. It would be nice if someone else can test it.
>> It builds currently on a 32 bits system with python 2.5 without  
>> the - fpermissive flag though
>> Gaëtan
>> --
>> Gaëtan Lehmann
>> Biologie du Développement et de la Reproduction
>> INRA de Jouy-en-Josas (France)
>> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
>> http://voxel.jouy.inra.fr
>

--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20070710/9bbda21f/PGP.pgp


More information about the Insight-developers mailing list