Here's a very simple requirements.txt:
numpy
sharedmem
The problem is, sharedmem actually depends on having numpy available to even run its setup.py, it's an install dependency. Running pip install -r requirements.txt
does try to install numpy first, as expected, but sharedmem still breaks on trying to import numpy.distutils.core
. Presumably because pip installs libraries into a temporary build directory first and it's not in the import path.
Any ideas on how to deal with it?
P.S. Looks like this is a dupe: In Python, `pip -r requirements.txt` doesn't install packages *recursively*?, but the problem wasn't resolved there either.