0

在关注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...
4

1 回答 1

0

在http://svn.debian.org/wsvn/python-modules/packages有很多 Debian 打包 Python 包的例子。许多项目包括手册页支持,例如http://svn.debian.org/wsvn/python-modules/packages/python-paver/trunk/debian/

于 2011-01-24T03:29:32.723 回答