I\'m using tox to prepare venv and run unit tests and my application needs openopt library which in turn imports numpy.distutils.core in its setup.py.
No ma
I have a generic way to bootstrap build-time dependencies in setup.py. You can use this even if you are not using tox. For this case, add the following snippet to the top of the setup.py script.
from setuptools.dist import Distribution
# Bootstrapping dependencies required for the setup
Distribution(dict(setup_requires=['numpy']))
Warning: This will install numpy using easy_install. Installing numpy with this method is somewhat tricky.