[Pytest-commit] Issue #184: tox fails to install statsmodels due to missing numpy dependency. (hpk42/tox)
issues-reply at bitbucket.org
Fri Aug 15 20:49:01 CEST 2014
New issue 184: tox fails to install statsmodels due to missing numpy dependency.
The error can be reproduced with this minimal `tox.ini`:
envlist = py27
bash -c "echo ouch..."
Running a dummy `setup.py` with this `tox.ini` will result in a failure while installing the dependencies:
File "/tmp/toxtest/.tox/py27/build/statsmodels/setup.py", line 463, in <module>
File "/tmp/toxtest/.tox/py27/build/statsmodels/setup.py", line 107, in check_dependency_versions
raise ImportError("statsmodels requires numpy")
ImportError: statsmodels requires numpy
Which comes from: https://github.com/statsmodels/statsmodels/blob/master/setup.py#L104-L108
One could expect that this error cannot occur, since numpy should have already been installed when statsmodels' `setup.py` is run. However that does not seem to be the case.
It's not clear to me if this problem is caused by tox or a bad `setup.py`.
Is there a workaround for this problem?
(tested with tox 1.7.1)
More information about the pytest-commit