问题
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...
回答1:
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/
来源:https://stackoverflow.com/questions/4770883/making-a-deb-file-from-a-python-file