Take the following trivial package that contains setup_requires:
from setuptools import setup
setup(name='my_package', setup_requires=['cython'])
Assuming I did the following to build it in the source distribution:
$ python setup.py sdist
And downloaded the source distribution for Cython
$ pip install --download ./dist/ --no-use-wheel Cython
So now I have:
$ ls dist/
my_package-0.0.0.tar.gz
Cython-0.21.1.tar.gz
What I would like to do is install the package on a machine isolated from the network, using some combination --find-links, etc.
I would suggest that I can do something like
pip install --no-index --find-links="file:///$(pwd)/dists" dist/my_package-0.0.0.tar.gz
However, I get an error message that looks like this:
No local packages or download links found for cython(Full text here: http://paste.pound-python.org/show/IxmzEEfQ5yZRU45i2FBM/ )
What I tried unsuccessfully:
Installation of the following
[easy_install]
allow_hosts = ''
find_links = file:///$(pwd)/emr-sdists
at
/usr/lib/python2.6/distutils/distutils.cfg
~/.pydistutils.cfg
./setup.cfg
--net none docker, , .