从Python文件制作.deb文件 [英] Making a .deb file from a Python file
问题描述
关注 http://ubuntuforums.org/showthread.php?t=406069我知道如何制作一个.deb文件,该文件自动将Python文件作为可执行文件放置在/usr/bin
目录中.我希望我的程序具有类似"grep"的结构.我应该使用哪些库,程序的结构应该是什么.
After following http://ubuntuforums.org/showthread.php?t=406069 I got to know how to make a .deb file which automatically places the Python file as an executable to /usr/bin
directory. I want my program to have a structure like that of "grep". Which libraries should I use, and what should be the structure of the programs.
在图书馆,我必须使用Get::Opt
图书馆吗?
At libraries, do I have to use Get::Opt
library?
通过"grep结构",我的意思是:
By the "grep structure" I mean the following:
program-name func-name -a arg1 --b arg2 should work
man program-name should open the man page
and
program-name should open an in interactive help shell...
推荐答案
在 http://svn.debian.org/wsvn/python-modules/packages .许多项目都包含手册页支持,例如 http://svn.debian.org/wsvn/python-modules/packages/python-paver/trunk/debian/
There are lots of examples of Debian packaging for Python packages at http://svn.debian.org/wsvn/python-modules/packages. Many of the projects include man page support, such as http://svn.debian.org/wsvn/python-modules/packages/python-paver/trunk/debian/
这篇关于从Python文件制作.deb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!