Reader small image

You're reading from  Learning Python Application Development

Product typeBook
Published inSep 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785889196
Edition1st Edition
Languages
Right arrow
Author (1)
Ninad Sathaye
Ninad Sathaye
author image
Ninad Sathaye

Ninad Sathaye has spent several years of his professional career designing and developing performance-critical engineering applications written in a variety of languages, including Python and C++. He has worked as a software architect in the semiconductor industry, and more recently in the domain of Internet of Things. He holds a master's degree in mechanical engineering.
Read more about Ninad Sathaye

Right arrow

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 files. In the discussion earlier, we named it testgamepkg:

$ cd /path/to/testgamepkg

We have already installed testgamepkg in an earlier section. To simplify things, in setup.py let's change the name field to something else. While you are at it...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Python Application Development
Published in: Sep 2016Publisher: PacktISBN-13: 9781785889196

Author (1)

author image
Ninad Sathaye

Ninad Sathaye has spent several years of his professional career designing and developing performance-critical engineering applications written in a variety of languages, including Python and C++. He has worked as a software architect in the semiconductor industry, and more recently in the domain of Internet of Things. He holds a master's degree in mechanical engineering.
Read more about Ninad Sathaye