Jeremy Jeremy -4 years ago 276
Python Question

Using an extra python package index url with

Is there a way to use an extra python package index (ala

pip --extra-index-url mypackage
) with
so that running
python install
can find the packages hosted on

Answer Source

If you're the package maintainer, and you want to host one or more dependencies for your package somewhere other than PyPi, you can use the dependency_links option of setuptools in your distribution's file. This allows you to provide an explicit location where your package can be located.

For example:

from setuptools import setup

    # ...

If you host your own index server, you'll need to provide links to the pages containing the actual download links for each egg, not the page listing all of the packages (e.g., not

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download