Re: [SciPy-dev] numpy.distutils: passing config_fc options in setup.py
![](https://secure.gravatar.com/avatar/1fb17de2e01c86df878d18f517e09210.jpg?s=120&d=mm&r=g)
On Monday 05 October 2009 03:50 PM, Pearu Peterson wrote:
passing config_fc={...} to either Extension or setup does not work. The numpy version is 1.4.0.dev6976.
A hackish solution would be to insert the following code to the beginning of the setup.py file:
import sys sys.argv[:] = sys.argv[:1] + ['config_fc'. "--f90flags='-ffree-form -fno-underscoring'"] + sys.argv[1:] )
Thanks for the suggestion. I was hoping for a cleaner solution but this will work too. cheers, prabhu
![](https://secure.gravatar.com/avatar/1cc5ef71a3266f21b7fec2b9287aaaab.jpg?s=120&d=mm&r=g)
Prabhu Ramachandran wrote:
On Monday 05 October 2009 03:50 PM, Pearu Peterson wrote:
passing config_fc={...} to either Extension or setup does not work. The numpy version is 1.4.0.dev6976.
A hackish solution would be to insert the following code to the beginning of the setup.py file:
import sys sys.argv[:] = sys.argv[:1] + ['config_fc'. "--f90flags='-ffree-form -fno-underscoring'"] + sys.argv[1:] )
Thanks for the suggestion. I was hoping for a cleaner solution but this will work too.
I just recalled that there is another solution. See http://projects.scipy.org/numpy/wiki/DistutilsDoc#specifing-config-fc-option... HTH, Pearu
participants (2)
-
Pearu Peterson
-
Prabhu Ramachandran