Install prerequisites:
sudo apt-get install python-pip sudo pip install pypiserver passlib mkdir -p /opt/pypi/packages
Add users who can upload packages
htpasswd -c /path/to/.htaccess myusername
Start the server
pypi-server -p 8080 -P /path/to/.htaccess /opt/pypi/packages
And visit your server via http
Find more information at https://pypi.python.org/pypi/pypiserver
….
Verify buildability
python setup.py bdist_egg
Edit or create a ~/.pypirc file with the following content:
[distutils] index-servers = pypi internal [pypi] username:pypiusername password:pypipasswd [internal] repository: http://127.0.0.1:8080 username: myusername password: mypasswd
And upload your egg to the server 'internal':
python setup.py sdist upload -r internal
Now you are ready to (re)install
sudo pip install --upgrade --force-reinstall -i http://127.0.0.1:8080/simple/ myegg
More infos e.g. here http://mrtopf.de/blog/en/a-small-introduction-to-python-eggs/