有大量关于如何做到这一点的信息,但由于给猫剥皮的方法不止一种",所有的教程/手册都涵盖了一些过程似乎做了一些与其他教程不同的假设,我仍然没有掌握它.
There is a ton of information on how to do this, but since "there is more than one way to skin a cat", and all the tutorials/manuals that cover a bit of the process seem to make certain assumptions which are different from other tutorials, I still didn't manage to grasp it.
到目前为止,这是我认为我理解的.
So far this is what I think I understood.
CDBS
或 debhelper
.Debhelper 是初学者的推荐方式.DEBIAN
目录中填充许多文件,说明文件需要复制的位置、它们受制于什么版权和许可方案、什么他们拥有的依赖项等等......dh_make
命令 if Python 源代码还带有 distutils 的 setup.py
脚本.CDBS
or debhelper
. Debhelper is the recommended way for beginners.DEBIAN
directory in the source directory with a number of files clarifying where files need to be copied, what copyright and licensing scheme they are subject to, what dependencies they have, etc...dh_make
command if the Python source also comes with a distutils' setup.py
script.现在我的问题:
setup.py
脚本? 作者:独立程序 我的意思是一个旨在供桌面用户使用的程序(与 module 不同,我理解它是一个导入后供其他软件使用的功能集合).在我的具体情况下,我实际上需要两个这样的程序":主软件和一个单独的实用程序(实际上是第二个程序",它应该与另一个程序在同一个包中).setup.py
script that install a stand-alone programme? By standalone programme I mean a program intended to be used by a desktop user (as opposed to a module which I understand like a collection of functionality to be used by other software after having been imported). In my specific case I would actually need two such "programs": the main software and a separate utility (in effect a second "program" that should be in the same package with the other one).顺便说一句:这些是迄今为止我能找到的最好的信息来源.如果你有比这更好的,请分享!:)
BTW: These are the best sources of information that I could find myself so far. If you have anything better than this, please share! :)
看起来像 stdeb会做你想做的.
It looks like stdeb will do what you want.
另外,对于安装脚本,我强烈推荐 distribute 的 console_scripts 入口点支持.
Also, for installing scripts, I strongly recommend distribute's console_scripts entry point support.
这篇关于有没有一种标准的方法来创建用于分发 Python 程序的 Debian 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!