[Insight-developers] Re: python 2.5 fix

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


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



-------------- 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/581f7fee/PGP.pgp


More information about the Insight-developers mailing list