Discussion:
[Numpy-discussion] runtests.py fails f2py test
Matti Picus
2016-07-15 13:50:37 UTC
Permalink
Am I missing something simple? I
- install git, subversion, gcc, gfortran (Ubuntu 16.04)
- create a clean python2 virtual env (no numpy)
- activate it
- git clone numpy
- cd into it
- python runtests.py
- wait
And it fails tests because it cannot find f2py.

Then I
- python setup.py install # to install numpy
- cd numpy/f2py
- python setup.py build
And setup fails:

F2PY Version 2
Traceback (most recent call last):
File "setup.py", line 117, in <module>
**config)
TypeError: setup() got multiple values for keyword argument 'version'

Can someone give me a one-line hint what I am doing wrong?
Matti
Ralf Gommers
2016-07-19 21:11:20 UTC
Permalink
Post by Matti Picus
Am I missing something simple? I
- install git, subversion, gcc, gfortran (Ubuntu 16.04)
- create a clean python2 virtual env (no numpy)
- activate it
- git clone numpy
- cd into it
- python runtests.py
- wait
And it fails tests because it cannot find f2py.
I can confirm that runtests.py doesn't install f2py into the virtualenv bin
directory. This issue is hard to run into though, because if you've ever
installed numpy on your system before (outside a virtualenv), then you
probably already have f2py on your PATH (it's at .local/bin/f2py).
Post by Matti Picus
Then I
- python setup.py install # to install numpy
- cd numpy/f2py
- python setup.py build
F2PY Version 2
File "setup.py", line 117, in <module>
**config)
TypeError: setup() got multiple values for keyword argument 'version'
f2py isn't supposed to be installed standalone, I'm not surprised that that
doesn't work.

Ralf
Post by Matti Picus
Can someone give me a one-line hint what I am doing wrong?
Matti
_______________________________________________
NumPy-Discussion mailing list
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Loading...