473,397 Members | 2,068 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,397 software developers and data experts.

Cross platform Python app deployment

Hi,

Is there some reference regarding how to package a Python application
for the various platforms? I'm familiar with Windows deployment - I use
Py2Exe & InnoSetup - but I would like more information on deploying on
Mac and Linux.

TIA,

Will McGugan
--
http://www.willmcgugan.com
Jul 30 '07 #1
3 1725
Hi,

Will McGugan wrote:
Is there some reference regarding how to package a Python application
for the various platforms? I'm familiar with Windows deployment - I use
Py2Exe & InnoSetup - but I would like more information on deploying on
Mac and Linux.
The standard way to package portable Python apps is a tarball with a
setup.py script. That should work on all systems where Python is already
installed, including Windows. Read <http://docs.python.org/dist/dist.html>,
if you have not already done so.

If you want more 'native' packages (as you already have for Windows, where
users are used to have a graphical installer), you'll have to
create .deb, .rpm, .whatever packages. You usually won't have to bother
about the Python interpreter, because it is either already present (it's a
standard package on most systems) or it will be pulled in via a package
dependency.
distutils already allows you to create rpm packages.
HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Jul 30 '07 #2
Will McGugan wrote:
Hi,

Is there some reference regarding how to package a Python application
for the various platforms? I'm familiar with Windows deployment - I use
Py2Exe & InnoSetup - but I would like more information on deploying on
Mac and Linux.
On mac, there is py2app that allows to create application-bundles you can
then install. Either including a python interpreter, or using an installed
one.

Diez
Jul 30 '07 #3
On Jul 30, 4:42 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
Will McGugan wrote:
Hi,
Is there some reference regarding how to package a Python application
for the various platforms? I'm familiar with Windows deployment - I use
Py2Exe & InnoSetup - but I would like more information on deploying on
Mac and Linux.

On mac, there is py2app that allows to create application-bundles you can
then install. Either including a python interpreter, or using an installed
one.

Diez
You could also try PyInstaller - see http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi
The site says it works on Windows, Linux and IRIX, so no Mac ...

Vasudev Ram
Biz site: http://www.dancingbison.com
Blog (on software innovation): http://jugad.livejournal.com
PDF creation/construction toolkit: http://sourceforge.net/projects/xtopdf

Jul 30 '07 #4

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

Similar topics

4
by: Jonathan P. | last post by:
....that would be for desktop-based apps, games, 3d graphics, and multimedia. ....thanks to APIs and bindings like Pygame, PyOpenGL, PyGtk and PyGtkGLExt. A summary of a lengthy post on the...
1
by: Fuzzyman | last post by:
I've written a simple application in python with an HTML help file. I'm looking for a cross platform way of launching the help file. On windows I'd use : os.system('start help.html') Which...
2
by: David Isaac | last post by:
I'd like to try personal financial management using Python. I just found PyCheckbook, but it does not support check printing. Is there a Python check printing application kicking around? Thanks,...
35
by: Alex Martelli | last post by:
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is...
3
by: techtonik | last post by:
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take...
8
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I would like to find out how I can launch an independent Python program from existing one in a cross-platform way. The result I am after is that a new terminal window should open (for io...
7
by: james_027 | last post by:
Hi, I am using delphi to develop gui application, and wish to make a shift to python. here are some of my question/concern... 1. is python develop gui application a cross platform? just like...
29
by: psaffrey | last post by:
I've been programming in Python for 5 or more years now and whenever I want a quick-n-dirty GUI, I use Tkinter. This is partly because it's the first toolkit I learnt, but also because it's part of...
12
by: Tomás Ó hÉilidhe | last post by:
I don't know the first thing about cross-platform GUI programming, so I'd like to ask a few quick questions. Which library is best for someone who appreciates portable programming and correct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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,...

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.