473,473 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2597
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jeuxal_com | last post by:
Hi, I need to add a python program (web updater+extras) with a window application. The same thing as the Online Lord of the Ring game lotrtcg.decipher.com. When you install their application,...
58
by: Svein Ove Aas | last post by:
Is anyone working on a python-to-native compiler? I'd be interested in taking a look. Come to think of it, is anyone working on a sexpr-enabled version of Python, or anything similar? I really...
1
by: ardechou | last post by:
hi , i have to build an application whoi using python 2.3 This application is running on python 2.2 , but i want to change to python 2.3. So , i used in my application ftplib to search a file in...
6
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to...
5
by: wahn | last post by:
Hi, Here is a problem I came across and need some help with. I developed a little Python script with some classes which runs standalone and communicates with a database via sockets. So far...
0
by: Fozzie | last post by:
Hi, I have a problem which is quite circular, and hopefully either someone has encountered something similar or has a reason why this will not work. We have a COM library providing...
2
by: warhero | last post by:
First question, I can't seem to get any python bytecode to be produced. I've tried different techniques from chapter 30.8 to chapter 31 of the python guide.. I was under the assumption that after...
0
by: Gabriel Genellina | last post by:
En Tue, 03 Jun 2008 16:58:12 -0300, Pau Freixes <pfreixes@milnou.net> escribió: So the above code corresponds to the standalone version - what about the embedded version? Are you sure it is...
0
by: PlayDough | last post by:
I've embedded Python in an extension for a program we are using here at work. And I'm a bit stumped as to why I am getting an AttributeError only in the embedded Python. First, a bit of what I...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.