从Python文件制作.deb文件 [英] Making a .deb file from a Python file

查看:536
本文介绍了从Python文件制作.deb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关注 http://ubuntuforums.org/showthread.php?t=406069我知道如何制作一个.deb文件,该文件自动将Python文件作为可执行文件放置在/usr/bin目录中.我希望我的程序具有类似"grep"的结构.我应该使用哪些库,程序的结构应该是什么.

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.

在图书馆,我必须使用Get::Opt图书馆吗?

At libraries, do I have to use Get::Opt library?

通过"grep结构",我的意思是:

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...

推荐答案

http://svn.debian.org/wsvn/python-modules/packages .许多项目都包含手册页支持,例如 http://svn.debian.org/wsvn/python-modules/packages/python-paver/trunk/debian/

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/

这篇关于从Python文件制作.deb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆