Question

For instance, what if PIL, python-rsvg and libev3 are dependencies of the program? These dependencies are not in pypi index, the latter two are Debian package names.

Was it helpful?

Solution

Simply don't put them in your dependencies and document that in your INSTALL or README.

OTHER TIPS

You could use setuptools. setuptools allows you to add any kind of Python installable (any distutils/setuptools enabled package) as a dependency, no matter if it is on PyPI or not.

For example, to depend on PIL 1.1.6, use something like:

setup(...,
      install_requires = ["http://effbot.org/downloads/Imaging-1.1.6.tar.gz"],
      ...)

See setuptools docs for more information.

If you are packaging something to be installed on Debian (as implied), the best way to manage dependencies is to package your program as a .deb and express the dependencies the Debian way. (Note, PIL is available in Debian as python-imaging.)

Since the setup.py is Python code too, you just can download and run the setup.py on those packages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top