By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,865 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,865 IT Pros & Developers. It's quick & easy.

Converting a python script into a standalone application

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.