[NumPy-Tickets] [NumPy] #1900: weave raise invalid version number '4.' error

NumPy Trac numpy-tickets@scipy....
Mon Jul 11 07:19:03 CDT 2011

#1900: weave raise invalid version number '4.' error
 Reporter:  hyry0088  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  1.6.0      
 Keywords:            |  
 When updated to NumPy 1.6.0, weave can't compile c code by using mingw.

 It raise ValueError: invalid version number '4.'.

 Following is the test program:

 from scipy.weave import inline
 a = 0
 inline("a+=1;", ["a"], compiler="gcc")

 To fix it:

 open file: numpy/distutils/mingw32compiler.py

 replace two "4." by "4.0"

Ticket URL: <http://projects.scipy.org/numpy/ticket/1900>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list