[SciPy-Dev] [PATCH] Scipy and python2.7

Bruce Southey bsouthey@gmail....
Fri Jul 23 09:07:35 CDT 2010


On 07/22/2010 07:13 AM, Fabian Pedregosa wrote:
> Hi all.
>
> With some minor changes I could install scipy using python2.7. The 
> only thing that failed was the c++ swig wrappers in 
> scipy.sparse.sparsetools. I believe this is because python is compiled 
> now using gcc and not g++, and also default flags have changed.
>
> The problem seems to be that numpy/ndarraytypes.h import inttypes.h, 
> but the macros in this file are not accessibly from C++ unless you 
> define the variable __STDC_FORMAT_MACROS. My solution was to define 
> this variable in the setup.py script. This makes it build fine and 
> test are OK too (ubuntu linux 64 bit). I attach the (git) patch.
>
> ~Fabian
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>    
Hi,
Thanks for the patch as it works for Python version 2.4, 2.5, 2.6 and 
2.7 on my 64-bit  Linux system.

Since you did the work, can you attach it to ticket 1180?
http://projects.scipy.org/scipy/ticket/1180

Thanks
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20100723/099a455d/attachment.html 


More information about the SciPy-Dev mailing list