473,412 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

What to use for installation?

Hello!
I wrote a crossplatform Glade/GTK+ application for learning foreign
languages (it is called Snakememory but doesn't have site in English yet).

Currently it works from the directory where it was unpacked. But I need
installation script that will compile and install translations, install
application on Unix or create installation bundle for Windows.

I have a three choices: distutils, make and scons. I think that
distutils can't handle many tasks and make will require installing the
whole cygwin for packaging on Windows, so the only remaining choice is
scons.

But I want to know other opinions before going with scons. What is the
best tool for installing python applications?
Eugene
Jul 18 '05 #1
1 1444
"Eugene Morozov" <eu*******@renice.org> wrote in message news:co**********@news.rol.ru...
But I want to know other opinions before going with scons. What is the best tool for installing python applications?


The tools you mention are actually more applicable to Python packages
in that they install the code into an existing Python install on
the machine.

For applications most people want standalone programs that the user
doesn't know or care is written in Python and doesn't have any
dependencies on things already installed on their system.

In that case you can use a Freezing tool which will package up
an executable stub, your code, the interpretter dll/so and other
binary/source modules you may use (eg GTK in your case). This
will give you a single directory with no dependcies that will
run your program.

Then you can use an installer that is platform specific. For
example on Windows you'll want the program to install from a
setup.exe and be in the Add/Remove programs list in the Contol
Panel. On Linux you'll want it added to KDE/Gnome user menus.

For freezing tools, there are:

- cx-Freeze (Windows, Linux, Mac?)
- py2exe (Windows)
- McMillan Installer (Windows, Linux, Mac?)
- py2app (Mac)
- bundlebuilder (Mac)

For installers, there are:

- InnoSetup (Windows)
- NSIS (Windows)
- rpm/dpkg (Linux)
- dimg tools (Mac)
- EPM (Linux/Unix)

IMHO the best of breed are

Windows: py2exe/InnoSetup
Linux: cx-Freeze/rpm
Mac: py2app/dimg

Other people use other combinations and have their favourites.

You can see some slides from a talk I did a while back that
goes into a little more detail, as well as giving an idea
of how much "code"/templates were written for the bitpim
project to use a freezer/installer on Windows, Linux and Mac.

http://bitpim.org/papers/baypiggies/

(See slides 18 thru 22).

Roger
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stephen Ferg | last post by:
I need a little help here. I'm developing some introductory material on Python for non-programmers. The first draft includes this statement. Is this correct? ...
14
by: ketulp_baroda | last post by:
i am developing a web application and i am really confused on what should i use. should i use just python and use the cgi module availabe. Or should i use application like WebWare.Also there is PSP...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
3
by: George Hester | last post by:
You know there is a difference between the Microsoft .NET Framework and the Microsoft .NET Framework SDK. Besides the fact that the former is 20 some MB and the latter is some 100MB there is a...
65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
1
by: Hai-Chu Hsu | last post by:
Hi, I want to restore my databases from the old SQL Server installation into a new installation of SQL Server. My new installation of SQL Server has different data path from the old...
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
6
by: jty202 | last post by:
"Although we do support the ASP.NET Starter Kits, we do not do the installation for you. You can run the installation file locally, then upload the kit. You will not be able to compile on the...
21
by: Tee | last post by:
Hi, Just curious what is clickone? Is it the same as Installshield? Been follow the following instructions and it seems to create an installation exe for me which is good but how come it...
4
by: James | last post by:
I am going to install DB2 version 9 on Windows XP workstation. But I can not continue the installation after I issue the command "setup /i en". System shows me that "A major error occoured while...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...

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.