从Python文件生成.deb文件

0 投票
1 回答
1545 浏览
提问于 2025-04-16 10:27

在看了这个链接 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...

1 个回答

0

有很多关于如何为Python包制作Debian安装包的例子,可以在这个链接找到:http://svn.debian.org/wsvn/python-modules/packages。许多项目还支持手册页,比如这个项目:http://svn.debian.org/wsvn/python-modules/packages/python-paver/trunk/debian/

撰写回答