I need to include a few python packages into my product, but the jenkins server that does the build does not have access to the Internet. I've downloaded one of the packages using pip download, which downloaded the package and all its dependencies. However, I need to make sure pip knows where to find those dependencies. I'm trying to use the options --no-index and --find-links with a path to an html file with links to those packages. The full command looks like this:
pip install http://SERVER/python-packages/impyla/0.14.0/impyla-0.14.0.tar.gz --no-index --trusted-host SERVER --find-links http://SERVER/python-packages/impyla/0.14.0/packages.html
...and the packages.html file looks like this:
six-1.10.0-py2.py3-none-any.whl
However, when jenkins tries to run these commands, I get:
Could not find a version that satisfies the requirement
thriftpy>=0.3.5 (from impyla==0.14.0) (from versions: )
No matching distribution found for thriftpy>=0.3.5 (from
impyla==0.14.0)
I'm wondering if my packages.html isn't in a correct format, but I can't find any examples of using an html file for dependency resolution. Has anyone used --find-links successfully?