分发应用程序 [英] Distributing applications

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

问题描述

我已经学到了足够多的Python语言,有点危险,而且b $ b已经在一些个人项目中使用过它。我在过去十几年里开发的所有商品(或生产)产品都是用C ++或Java完成的。




对于我计划的一个程序 - 在夏天开始 - 作为应用程序的一部分,有一个

的口译员是非常可取的,以允许

复杂的用户提供自己的扩展。 Java将是

可行,但....


我的问题是:

- 我想要安装应用程序的过程是一步;

否首先下载Python解释器然后下载GUI库那种

的东西。

- 我还需要申请的核心部分合理地受到b $ b保护。我不打算打败黑客,但是对于Java的类文件存放在罐子里的方式等同于

的东西并且不会立即可读。


我已经查看了各个网站的主题,但我发现的大多数都是

使用Python语言的参数。好吧,我会假装自己已经说服了......现在有任何关于创建

a自包含发行版的机制的评论或参考?


-

Phillip Mills

多平台软件开发

(416)224-0714

---- ==通过Newsfeeds.Com发布 - 无限制 - 未经审查 - 安全Usenet新闻== ----
http://www.newsfeeds.com 世界排名第一的新闻组服务! 120,000多个新闻组

---- =东海岸和西海岸服务器农场 - 通过加密实现全隐私= ----

解决方案

2005年3月2日星期三14:12,Phillip Mills写道:

现在有关创建
自包含发行版的机制的任何评论或参考?




运行到 http:// starship.python.net/crew/theller/py2exe/

-

Toby Dickenson


我想要一个很好的紧密包装我自己的分布,真的

不想去py2exe路线。我可能用过一把大锤来敲杀一只苍蝇,但这就是我所做的......


1)下载的python源码(2.3.4)

2)修改了源代码,以便sys.path从我的安装程序设置的注册表项中提取



2)编译的python

3)编译wxPython 2.5.3.1

4)将我的应用程序与使用NSIS的自定义python安装捆绑在一起。


我的` setup.exe''文件是6654281字节 - 还不错。考虑到它的整个python发行版(我可能已经错过了几个模块 -

,但我不这么认为)和wxPython。


我选择不使用py2exe,因为它更新了我的应用程序

messier。例如,假设我在我的软件的
版本1中没有使用smtplib模块。 Py2exe意识到并且没有用我的可执行文件包装''

smtplib。现在,如果我发布使用smtplib的版本1.1,那么我将不得不弄清楚如何获得更新

而无需用户重新下载整个应用。当然,我的b $ b并没有考虑到更新机制,但当时好像是b $ b凌乱。


如果我有自己的发行版,我可以简单地给用户一个更新

程序,该程序将查询我的网络服务器,它将下载最新的

版本他们自动化。因为我的发行版已经有了所有已经可用的模块,所以我不必担心发送任何遗漏模块的b / b
。只需下载我的

应用程序的最新版本,它适用于我的自定义滚动发行版。


但是,这仅适用于Windows ...


jw


2005年3月2日星期三09:12:26 -0500,Phillip Mills

< ph * ***********@acmdelete.org>写道:

我已经学到了足够多的Python语言,有点危险,并且已经在一些个人项目中使用过它。在过去的十几年中,我所有的商业(或生产)产品的开发都是用C ++或Java完成的。

对于我正在计划的程序 - 来在夏天开始 - 作为应用程序的一部分有一个
解释器是非常可取的,以允许复杂的用户提供他们自己的扩展。 Java可以做到,但是....

我的问题是:
- 我希望安装应用程序的过程是一步;
no首先下载Python解释器然后下载GUI库那种事情。
- 我还需要对应用程序的核心部分进行合理的保护。我不打算打败黑客,但是与Java存储在jar中的类文件的方式相同的东西仍然存在于他们应该的位置并且不会立即可读。

我已经查看过这个主题的各种网站,但是我发现大多数网站只是使用Python语言的参数。好吧,我会假装我已经说服了......现在有关创建
自成一体发行版的机制的任何评论或参考吗?

- < Phillip Mills
多平台软件开发
(416)224-0714
---- ==通过Newsfeeds.Com发布 - 无限制 - 未经审查 - 安全使用网新闻== ----
http://www.newsfeeds.com 世界排名第一的新闻组服务! 120,000多个新闻组
---- =东海岸和西海岸服务器农场 - 通过加密实现全隐私= ----
-
http://mail.python.org/mailman/listinfo/python-list



Phillip Mills写道:

我已经学到了足够多的Python语言,有点危险,并且已经在一些中使用了它个人项目。在过去的十几年中,我所有的商业(或生产)产品的开发都是用C ++或Java完成的。

对于我正在计划的程序 - 来在夏天开始 - 作为应用程序的一部分有一个
解释器是非常可取的,以允许复杂的用户提供他们自己的扩展。 Java可以做到,但是....

我的问题是:
- 我希望安装应用程序的过程是一步;
no首先下载Python解释器然后下载GUI库有点儿的东西。


要在Windows下创建自包含的安装/分发,

使用py2exe:

http://starship.python.net/crew/theller/py2exe/


如果你想为你的模块创建一个漂亮的Windows安装程序:

http://www.python.org/doc/current/di...on-script.html

- 我还需要对应用程序的核心部分进行合理的保护。我不打算打败黑客,但是与Java存储在jar中的类文件的方式相同的东西仍然存在于他们应该的位置并且不会立即可读。

嗯,不确定那一个。你的意思是那些编写

扩展名的用户不应该修改你写的核心代码?你是否讨论了不受信任的代码的受限执行环境?

我宁愿这样做只接受由可信任的代码签名的代码

派对或类似的东西。

我已经查看了各个网站的主题,但我发现大多数只是使用Python语言的参数。好吧,我会假装我已经说服了......现在有关创建
自包含发行版的机制的任何评论或参考吗?



I''ve learned enough of the Python language to be mildly dangerous and
have used it in a few personal projects. All my development of
commercial (or production) products over the past dozen years have been
done with C++ or Java.

For a program I''m planning -- to begin during the summer -- having an
interpreter as part of the application would be very desirable to allow
sophisticated users to provide their own extensions. Java would be
do-able, but....

My problems are:
- I''d like the process of installing the application to be one step;
no "first download a Python interpreter then a GUI library" kind of
thing.
- I also need the core part of the application to be reasonably
protected. I''m not looking to defeat hackers, but something equivalent
to the way Java''s class files stored in jars stay where they''re supposed
to be and aren''t immediately readable.

I''ve looked at various web sites for this topic, but most I''ve found are
just arguments for using the Python language. OK, I''ll pretend I''m
convinced...now any comments or references on the mechanics of creating
a self-contained distribution?

--
Phillip Mills
Multi-platform software development
(416) 224-0714

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

解决方案

On Wednesday 02 March 2005 14:12, Phillip Mills wrote:

now any comments or references on the mechanics of creating
a self-contained distribution?



Run to http://starship.python.net/crew/theller/py2exe/
--
Toby Dickenson


I wanted a nice tightly-wrapped distribution of my own and really
didn''t want to go the py2exe route. I may have used a sledgehammer to
kill a fly, but here is what I did...

1) Downloaded python source (2.3.4)
2) Modified source, so that sys.path would pull from a registry key
setup by my installer.
2) Compiled python
3) Compiled wxPython 2.5.3.1
4) Bundled my app along with the custom python installation using NSIS.

My `setup.exe'' file was 6654281 bytes -- not bad. Considering its the
entire python distribution (I may have missed a couple of modules --
but i don''t think so) and wxPython.

I chose not to use py2exe because it made updating my app a bit
messier. For instance, suppose I don''t use the smtplib module in
version 1 of my software. Py2exe realizes that and doesn''t ''package''
smtplib with my executable. Now, if I release version 1.1 which does
use smtplib, then I''d have to figure out how to get the updates out
without having the user redownload the entire application. Granted, I
didn''t put much thought into an update mechanism, but it seemed to be
messy at the time.

If I have my own distribution, I can simply give the users an "update"
program that will query my webserver which will download the latest
version for them automagically. Because my distribution has all of
the modules already available, I don''t have to worry about sending
them any missing modules. Simply download the latest version of my
app and it works with my custom rolled distribution.

But, this only works for Windows...

jw

On Wed, 02 Mar 2005 09:12:26 -0500, Phillip Mills
<ph************@acmdelete.org> wrote:

I''ve learned enough of the Python language to be mildly dangerous and
have used it in a few personal projects. All my development of
commercial (or production) products over the past dozen years have been
done with C++ or Java.

For a program I''m planning -- to begin during the summer -- having an
interpreter as part of the application would be very desirable to allow
sophisticated users to provide their own extensions. Java would be
do-able, but....

My problems are:
- I''d like the process of installing the application to be one step;
no "first download a Python interpreter then a GUI library" kind of
thing.
- I also need the core part of the application to be reasonably
protected. I''m not looking to defeat hackers, but something equivalent
to the way Java''s class files stored in jars stay where they''re supposed
to be and aren''t immediately readable.

I''ve looked at various web sites for this topic, but most I''ve found are
just arguments for using the Python language. OK, I''ll pretend I''m
convinced...now any comments or references on the mechanics of creating
a self-contained distribution?

--
Phillip Mills
Multi-platform software development
(416) 224-0714

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
--
http://mail.python.org/mailman/listinfo/python-list



Phillip Mills wrote:

I''ve learned enough of the Python language to be mildly dangerous and
have used it in a few personal projects. All my development of
commercial (or production) products over the past dozen years have been
done with C++ or Java.

For a program I''m planning -- to begin during the summer -- having an
interpreter as part of the application would be very desirable to allow
sophisticated users to provide their own extensions. Java would be
do-able, but....

My problems are:
- I''d like the process of installing the application to be one step;
no "first download a Python interpreter then a GUI library" kind of
thing.
For creating a self-contained installation/distribution under Windows,
use py2exe:

http://starship.python.net/crew/theller/py2exe/

If you want to create a nice Windows installer for your module(s):

http://www.python.org/doc/current/di...on-script.html

- I also need the core part of the application to be reasonably
protected. I''m not looking to defeat hackers, but something equivalent
to the way Java''s class files stored in jars stay where they''re supposed
to be and aren''t immediately readable.
Hmm, not sure about that one. You mean that those users who write
extensions should not be able to modify the core code you wrote? Are you
talking about a restricted execution environment for untrusted code?
I''d rather make it so to only accept code which is signed by a trusted
party or something like that.
I''ve looked at various web sites for this topic, but most I''ve found are
just arguments for using the Python language. OK, I''ll pretend I''m
convinced...now any comments or references on the mechanics of creating
a self-contained distribution?



这篇关于分发应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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