从 Python 文件创建 .deb 文件
遵循 http://ubuntuforums.org/showthread.php?t=406069 我了解如何制作 .deb 文件,该文件自动将 Python 文件作为可执行文件放置到 /usr/bin
目录中。我希望我的程序具有类似于“grep”的结构。我应该使用哪些库,以及程序的结构应该是什么。
在图书馆,我必须使用 Get::Opt
图书馆吗?
我所说的“grep 结构”的意思如下:
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...
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.
At libraries, do I have to use Get::Opt
library?
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://svn.debian 上有很多 Python 包的 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/