1 get the package from https://pypi.python.org/simple/
we can do it by this pip install --download=/var/www/pypi/ -r /opt/stack/nova/test-requirements.txt
2 set up a http server.
first we should have the tar/whl as this origznaztion, each gz should have a directory
├── WebOb
│?? └── WebOb-1.4.tar.gz
├── websockify
│?? └── websockify-0.5.1.tar.gz
└── wsgiref
└── wsgiref-0.1.2.zip
3 modify ~/.pip/pip.conf
Add this
[global]
index-url=$your server ip/dir