根据第三方模块分发程序。 [英] Distributing programs depending on third party modules.

查看:66
本文介绍了根据第三方模块分发程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨列表,


是否有一种首选方式来分发依赖于第三个
派对模块(如PyQt,Beautifulsoup等)的程序?我已经使用了setuptools和

只是让安装脚本检查是否存在所需的

模块。如果找不到它我会退出并显示需要

这个或那个安装的消息。


但这对于最终用户和我有一些关于它的抱怨
。我在setuptools中遗漏了什么,或者是否有更好的方法来实现它(除了捆绑模块中的模块

,这看起来像是一个相当讨厌的解决方法)?


谢谢

Tina

Hi list,

Is there a preferred way to distribute programs that depends on third
party modules like PyQt, Beautifulsoup etc? I have used setuptools and
just having the setup script check for the existence of the required
modules. If they''re not found I have it exit with a message that it need
this or that installed.

But this is not very convenient for the end user and I have got a few
complaints about it. Am I missing something in setuptools or is there a
better way to do it (except for bundling the modules in the package
which seem like a rather nasty workaround)?

Thanks
Tina

推荐答案

Tina我是一个écrit:
Tina I a écrit :

嗨列表,


是否有一种首选方式来分发依赖于第三方的程序

方模块像PyQt,Beautifulsoup等?我已经使用了setuptools和

只是让安装脚本检查是否存在所需的

模块。如果找不到它我会退出并显示需要

这个或那个安装的消息。


但这对于最终用户和我有一些关于它的抱怨
。我在setuptools中遗漏了什么
Hi list,

Is there a preferred way to distribute programs that depends on third
party modules like PyQt, Beautifulsoup etc? I have used setuptools and
just having the setup script check for the existence of the required
modules. If they''re not found I have it exit with a message that it need
this or that installed.

But this is not very convenient for the end user and I have got a few
complaints about it. Am I missing something in setuptools



EasyInstall,也许?
http://peak.telecommunity.com/DevCenter/EasyInstall


HTH

EasyInstall, perhaps ?
http://peak.telecommunity.com/DevCenter/EasyInstall

HTH


Tina我写道:
Tina I wrote:

嗨列表,


是否有一种首选方式来分发依赖于的程序在第三个

派对模块如PyQt,Beautifulsoup等?我已经使用了setuptools和

只是让安装脚本检查是否存在所需的

模块。如果找不到它我会退出并显示需要

这个或那个安装的消息。


但这对于最终用户和我有一些关于它的抱怨
。我在setuptools中遗漏了什么,或者是否有更好的方法来实现它(除了捆绑模块中的模块

,这看起来像是一个相当讨厌的解决方法)?


谢谢

Tina
Hi list,

Is there a preferred way to distribute programs that depends on third
party modules like PyQt, Beautifulsoup etc? I have used setuptools and
just having the setup script check for the existence of the required
modules. If they''re not found I have it exit with a message that it need
this or that installed.

But this is not very convenient for the end user and I have got a few
complaints about it. Am I missing something in setuptools or is there a
better way to do it (except for bundling the modules in the package
which seem like a rather nasty workaround)?

Thanks
Tina



你在做什么平台?在Linux平台上,依赖

hell这种类型几乎是不可避免的,因为有很多不同的包装系统(apt,rpm等等):这是标准让

包管理器处理这些依赖项。是的,这对于最终用户来说是令人沮丧的。


在Windows和Mac上,捆绑所有模块并不是令人讨厌的。 >
workaround" ;;这是标准行为。这些平台上的最终用户

期望完整的应用程序包,包括所有支持

库,由开发人员提供。执行此操作的标准工具是用于Windows的py2exe( http:// www.py2exe.org/ )和py2app

for Mac( http://svn.pythonmac.org/py2app/py2a...oc/index.html)


还有其他分发冻结二进制文件的方法,包括

随Python附带的冻结模块,cx_freeze和




-

Kevin Walzer

凯文代码
http://www.codebykevin.com

What platform are you doing this on? On the Linux platform, "dependency
hell" of this sort is pretty much unavoidable, because there are so many
different packaging systems (apt, rpm, and so on): it''s standard to let
the package manager handle these dependencies. And yes, it is
frustrating for end users.

On Windows and the Mac, bundling all the modules isn''t a "nasty
workaround"; it''s the standard behavior. End users on those platforms
expect complete application packages, including all supporting
libraries, to be provided by the developers. The standard tools for
doing this are py2exe for Windows (http://www.py2exe.org/) and py2app
for Mac (http://svn.pythonmac.org/py2app/py2a...oc/index.html).

There are other methods for distributing "frozen binaries," including
the freeze module that ships with Python itself, cx_freeze, and
PyInstaller: these three may work on Linux/Unix as well as Windows (they
are not supported on the Mac). But the methods above are generally the
ones most widely used.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


Kevin Walzeraécrit:
Kevin Walzer a écrit :

Tina我写道:
Tina I wrote:

>嗨列表,

是否有一种首选的方式来分发依赖于PyQt,Beautifulsoup等第三方模块的程序?我已经使用了setuptools和
只是让安装脚本检查是否存在所需的
模块。如果没有找到它,我会退出并显示它需要安装这个或那个的消息。

但这对最终用户来说不是很方便而且我有一些关于它的投诉。我在setuptools中遗漏了什么,或者是否有更好的方法(除了将软件包捆绑在一起看起来像一个相当讨厌的解决方法)?

谢谢
Tina
>Hi list,

Is there a preferred way to distribute programs that depends on third
party modules like PyQt, Beautifulsoup etc? I have used setuptools and
just having the setup script check for the existence of the required
modules. If they''re not found I have it exit with a message that it
need this or that installed.

But this is not very convenient for the end user and I have got a few
complaints about it. Am I missing something in setuptools or is there
a better way to do it (except for bundling the modules in the package
which seem like a rather nasty workaround)?

Thanks
Tina




你在做什么平台?在Linux平台上,依赖

hell这种情况几乎是不可避免的,



What platform are you doing this on? On the Linux platform, "dependency
hell" of this sort is pretty much unavoidable,



是的。 EasyInstall工作正常。

Yes it is. EasyInstall works just fine.


因为有很多

不同的包装系统(apt,rpm等):它''允许包管理器处理这些依赖关系的标准。是的,这对于最终用户来说是令人沮丧的。
because there are so many
different packaging systems (apt, rpm, and so on): it''s standard to let
the package manager handle these dependencies. And yes, it is
frustrating for end users.



我是Gentoo和Ubuntu的快乐用户。我没有任何挫折感。

感觉。

I''m a happy user of Gentoo and Ubuntu. I don''t have any frustration
feeling.


这篇关于根据第三方模块分发程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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