How to add PyPi dependencies to DEB package

微笑、不失礼 提交于 2019-12-06 01:39:34

问题


I created some python app using autobahn and packaged it using baazar builddeb. In python setup.py file I added requires tag with all the required dependencies. Is it possible to tell debian package installer to install these packages?

I added some of deps to debian/control>Depends but:

  1. dpkg -i my_package does not install dependencies. Just shows the error and I need to install these deps manually.

  2. some packages does not exists in standard Ubuntu repos. For example autobahn. And in general I'd like to have installed all python dependencies by pip/easy_install

I am using DistUtilsExtra.auto.setup with personalized install action. So I think I could run easy_install packages there. Is it good idea?

Thank you.


回答1:


Create debian packages from pypi using the python-stdeb package, then depend on them like any other package.

See http://pypi.python.org/pypi/stdeb



来源:https://stackoverflow.com/questions/12210389/how-to-add-pypi-dependencies-to-deb-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!