如何将PyPi依赖项添加到DEB包中 [英] How to add PyPi dependencies to DEB package
问题描述
我使用 autobahn
创建了一些 python
应用,并使用 baazar builddeb对其进行了打包
。在python setup.py文件中,我添加了带有所有必需依赖项的 requires
标记。是否可以告诉debian软件包安装程序安装这些软件包?
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?
我在 debian / control> Depends
中添加了一些部门,但是:
I added some of deps to debian/control>Depends
but:
-
dpkg -i my_package
不安装依赖项。只是显示错误,我需要手动安装这些deps。
dpkg -i my_package
does not install dependencies. Just shows the error and I need to install these deps manually.
标准Ubuntu回购中不存在某些软件包。例如高速公路。通常,我想通过 pip / easy_install
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
安装所有python依赖项
我正在使用 DistUtilsExtra.auto.setup
和个性化的 install
操作。所以我想我可以在其中运行 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?
谢谢。
推荐答案
创建debian使用python-stdeb软件包从pypi中获取软件包,然后像其他任何软件包一样依赖它们。
Create debian packages from pypi using the python-stdeb package, then depend on them like any other package.
请参见 http://pypi.python.org/pypi/stdeb
这篇关于如何将PyPi依赖项添加到DEB包中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!