469,323 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Converting a python script into a standalone application

Hi,

I've written a commercial application that uses Python scripts for
some of the functionality. Installing the Python portion of the
application requires me to first install Python, and then install the
scripts. I'm looking for an easier way to install the Python portion.

I've been referred to: http://www.mcmillan-inc.com/install1.html

Which application would people recommend for creating a standalone
executable?

Are there any licensing issues I need to consider wrt including a
"Python runtime" with my distribution?

Thanks
Jul 18 '05 #1
2 2418
Sandeep Gupta wrote:
Hi,

I've written a commercial application that uses Python scripts for
some of the functionality. Installing the Python portion of the
application requires me to first install Python, and then install the
scripts. I'm looking for an easier way to install the Python portion.

I've been referred to: http://www.mcmillan-inc.com/install1.html

Which application would people recommend for creating a standalone
executable?

Are there any licensing issues I need to consider wrt including a
"Python runtime" with my distribution?


You can also look at py2exe at
http://starship.python.net/crew/theller/py2exe/ . Its license is
BSD-like, AFAICT.

--
Glitch

-----BEGIN TF FAN CODE BLOCK-----
G+++ G1 G2+ BW++++ MW++ BM+ Rid+ Arm-- FR+ FW-
#3 D+ ADA N++ W OQP MUSH- BC- CN++ OM P75
-----END TF FAN CODE BLOCK-----

"I would've preferred a robot truck."
"Heathen."
-- Two Aliens, on Monkey Master, on January 23, 2001.
http://www.itswalky.com/

Jul 18 '05 #2
sa********@hotmail.com (Sandeep Gupta) writes:
I've been referred to: http://www.mcmillan-inc.com/install1.html

Which application would people recommend for creating a standalone
executable?
I've been using the McMillan installer for a long time now very
successfully, although there are others (such as py2exe) that are also
available.

You don't mention platform, but assuming your use of "executable"
implies a Windows platform, if by standalone executable, if you mean a
single .exe to run the application, you can create that with
installer, but it'll still automatically unpack any needed extension
dll/pyd files when it starts and remove them when it ends.

If instead you mean a single .exe that can be used to install your
application (like a normal Windows installer), then you can use normal
installation packages to take the results created by installer and
package them up. I'm a fan of Inno Setup
(http://www.jrsoftware.org/isinfo.php) but there are others around
(such as NSIS).

BTW, if instead you were referring to a Unix (or MacOSX) platform then
installer may be the only system to support them the way you want (and
installer not necessarily on all Unix variants - Linux is probably the
most tested).

If you're talking about a Mac classic setup, I believe there is in
fact some support for packaging up Python stuff for Mac installations,
but other than vaguely remembering reading about it on a MacPython
specific web page, don't know anything further.
Are there any licensing issues I need to consider wrt including a
"Python runtime" with my distribution?


There shouldn't be - the Python license permits this even for
commercial situations. You should double check however, that if your
application involves any extension modules that are not part of the
basic Python distribution that they may have their own more
restrictive licenses.

-- David
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

58 posts views Thread by Svein Ove Aas | last post: by
1 post views Thread by ardechou | last post: by
5 posts views Thread by wahn | last post: by
2 posts views Thread by warhero | last post: by
reply views Thread by PlayDough | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.