This started with Jonathan Hartley's input to the "pypi's going slowly twiscusion" he suggested:
To download sdists into dirname "pip install -d dirname -r reqs.txt"
Then to install "pip install -r reqs.txt --no-index --find-links=file://dirname". This bit works even w/ no network...
So I've downloaded the packages with --download
and made this install script:
$ cat install_packages.sh
pip install --no-index --find-links=file://requirements/package_sources -r requirements.txt
# defaults to requirements.txt
./install_packages.sh
# or
./install_packages.sh -r ./requirements/dev.txt
# or
./install_packages.sh South
Install as usual, then run:
./requirements/download_package_cache.sh
# won't work if run from within requirements directory
You should see a new package in requirements/package_sources/ which you can then commit after adding a new line to requirements/base.txt (or other req file).