[Insight-developers] Re: python 2.5 fix

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Jul 12 08:41:58 EDT 2007


It worked with python 2.4.2 and 2.5.1.


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
>
> -Brad

--
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/20070712/22efffdf/PGP.pgp


More information about the Insight-developers mailing list