Making a .deb file from a Python file

橙三吉。 提交于 2020-01-11 14:24:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!