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

Cross platform Python app deployment

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


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

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.