Closed asottile closed 8 years ago
The problem is that some modules can come from different places. For example, scipy bundles numpy, PIL can come from PIL or Pillow, etc.
scipy does not bundle numpy:
$ pip install scipy
Collecting scipy
Using cached scipy-0.17.1-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: scipy
Successfully installed scipy-0.17.1
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
PIL is dead and no longer maintained, I would just depend on Pillow directly.
Currently I can do the following:
This will build a wheel of pyssim.
Then I will attempt to install that wheel in another virtualenv
Then I try and use pyssim:
BOOM
The reasoning for this: You should specify your dependencies statically in setup.py and not optionally based on imports :)