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.
views:
353answers:
5Simply don't put them in your dependencies and document that in your INSTALL or README.
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.
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.
I've reported this problem here :
http://mail.python.org/pipermail/python-list/2009-September/727045.html