开发者

Making a .deb file from a Python file

开发者 https://www.devze.com 2023-02-05 23:55 出处:网络
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 progr

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 sho开发者_JS百科uld 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...


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消