Cross platform Python app deployment

W

Will McGugan

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
 
B

Benjamin Niemann

Hi,

Will said:
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
 
D

Diez B. Roggisch

Will said:
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
 
V

vasudevram

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top