Using a private PyPI repository

This section will briefly cover how to setup a private PyPI repository. The discussion will be limited to creating a simple HTTP-based local server. There are several packages that can help you do this. Let's use a popular package called pypiserver (https://pypi.python.org/pypi/pypiserver). Let's open a terminal window and get ready for action.

Step 1 – Installing pypiserver

First, install the required package:

$ pip install pypiserver 

The pypi-server executable sits at the same location that you have the Python executable. For example, if you have /usr/bin/python, pypi-server will be available as /usr/bin/pypi-server.

Step 2 – Building a new source distribution

Go to the directory where you have setup.py and all other ...

Get Learning Python Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.