创建要安装的 python rpm
我为 gnome 创建了一个非常简单的 gtk python 应用程序(只是一个 pycairo 动画)。
我正在尝试制作一个rpm,以便其他人可以轻松安装它。我希望让我的应用程序出现在 gnome 应用程序菜单中。当我尝试在 Fedora 13(我自己的机器)上安装它时遇到了麻烦。
我按照此处的说明进行操作: http://docs.python.org/distutils/builtdist.html
并且我能够动态创建 TestApp-1.1.tar.gz
、TestApp-1.1-1.noarch.rpm
和 TestApp-1.1-1.src.rpm< /代码>。
但是,当我双击 TestApp-1.1-1.noarch.rpm
时,会发生两件事:
我单击一个对话框,接受安装。然后,根据另一个对话框(“已完成”),该软件显然已安装。但随后另一个对话框出现在已完成的对话框之上:
<块引用> <块引用>“需要额外确认/要安装此文件,还必须修改其他软件。需要安装以下软件:
TestApp-1.1-1 (noarch)
”。当我同意此对话框时,看起来它正在在线检查内容......或者只是花了很长时间。整个过程有点混乱......这是正常的吗?
安装后,仅安装一个文件 -
/usr/lib/python2.6/site-packages/TestApp-1.1-py2.6.egg-info
。什么是 Egg-info 文件?我的应用程序在哪里?
当我双击 TestApp-1.1-1.src.rpm
时,我在模式对话框中收到此错误:
<块引用>“无法进行模拟:后端不会安装 src rpm 文件”
如果您能提供有关如何为 gnome 创建可安装的 python 应用程序的帮助,我将不胜感激。
I have created a dead simple gtk python app (just a pycairo animation) for gnome.
I am trying to make an rpm so that it is easy for others to install it. I was hoping to make my app appear in the gnome application menu. I am running into trouble when I try to install it on Fedora 13 (my own box).
I follow the instructions here:
http://docs.python.org/distutils/builtdist.html
and am able to dynamically create a TestApp-1.1.tar.gz
, TestApp-1.1-1.noarch.rpm
, and TestApp-1.1-1.src.rpm
.
But when I double click on TestApp-1.1-1.noarch.rpm
two things happen:
I click a dialog, accepting to install. Then, the software apparently installs, according to another dialog ("Finished"). But then another dialog comes up on top of the finished dialog to say:
"Additional confirmation required / To install this file, additional software also has to be modified. The following software needs to be installed:
TestApp-1.1-1 (noarch)
".When I agree to this dialog, it looks like it is checking stuff out online... or just taking a long time. This whole procedure is a little confusing... is this normal?
Once installed, only one file is installed -
/usr/lib/python2.6/site-packages/TestApp-1.1-py2.6.egg-info
. What is an egg-info file? Where is my application?
When I double click on the TestApp-1.1-1.src.rpm
, I get this error in a modal dialog:
"could not do simulate: Backend will not install a src rpm file"
I would appreciate any help on how to make an installable python application for gnome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从生成的 SRPM 中提取规范,然后按照 Fedora 打包指南进行清理。
"打包:指南"
"打包:Python"
Extract the spec from the generated SRPM and then clean it up as per the Fedora Packaging guidelines.
"Packaging:Guidelines"
"Packaging:Python"