Closed cdeil closed 3 months ago
Another question: is numpy
a required or optional dependency for algopy
?
At the moment algopy
import fails if numpy is not installed:
$ python3 -c 'import algopy'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./algopy/__init__.py", line 59, in <module>
from numpy.testing import Tester
ImportError: No module named 'numpy'
There's various setup.py
keywords to declare required and optional dependencies, but I'm not familiar enough with them and algopy to make a suggestion how algopy
could declare it's required and optional dependencies properly:
http://pythonhosted.org/distribute/setuptools.html
NumPy is a hard requirement of AlgoPy. SciPy used to be optional, but since numerous the contributions of @agriffing, a rather large part of AlgoPy now depends on SciPy.
One could separate the two parts, but unless there is specific demand, I'll just make SciPy a hard requirement.
SciPy was added as a dependency here https://github.com/b45ch1/algopy/commit/b70efcc9cf290a28ab50b2428585c1a858803e51 but it could be possible to make some changes so it is not required, if this is important.
Closing due to inactivity.
Can you change run_tests.py so that it works even if scipy is not available?