I am trying to create a setup.py
for a project that depends on SciPy. The following setup.py
reproduces this:
setup(
name='test',
version='0.1',
install_requires=['scipy']
)
When installing this using python setup.py develop
it generates the following error:
ImportError: No module named numpy.distutils.core
However, when I install scipy using pip
, it installed it from a wheel, and it works just fine.
So, my questions is, how can I create a setup.py
that depends on SciPy? Why won't setuptools
install dependencies from wheels? Would this work better when using Python 3 (we plan to migrate anyway, so if it works there, I'll just wait until the migration is complete).
I am using Python 2.7.8 on Mac OS X 10.10.1 with setuptools
3.6 and pip
1.5.6.