Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20484

Stand-Alone Python Executable Skeletons

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ironfroggy@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.086
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.08; 'lost.': 0.09; 'run.': 0.09; 'direction?': 0.16; 'elf': 0.16; 'exe': 0.16; 'ideally,': 0.16; 'osx': 0.16; 'pyinstaller': 0.16; 'simpler,': 0.16; 'sparse': 0.16; 'seems': 0.20; 'archive': 0.21; 'linux,': 0.21; '(or': 0.22; 'versions': 0.23; 'code': 0.26; "i'm": 0.28; 'message-id:@mail.gmail.com': 0.29; "they'll": 0.30; "i've": 0.32; 'does': 0.32; 'sort': 0.33; 'received:209.85.212': 0.33; 'it.': 0.33; 'someone': 0.34; 'executable': 0.34; 'option.': 0.34; 'preliminary': 0.34; 'to:addr :python-list': 0.35; 'copying': 0.35; 'project': 0.35; 'depend': 0.37; 'run': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'options': 0.37; 'received:209.85': 0.38; 'uses': 0.38; 'could': 0.38; 'some': 0.38; 'doing': 0.38; 'easier': 0.38; "i'd": 0.39; 'received:209': 0.39; 'setup': 0.40; 'being': 0.40; 'put': 0.40; 'to:addr:python.org': 0.40; 'platforms': 0.40; 'follow': 0.61; 'your': 0.61; 'matter': 0.62; 'zip': 0.62; 'love': 0.63; 'header :Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; 'reply- to:addr:gmail.com': 0.76; 'blog!': 0.84; 'headed': 0.84; 'machines,': 0.84; 'setups': 0.84; 'subject:Stand': 0.84; 'subject:Executable': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=ABLgPc9gDAaMdw23aZcSSzxv/AEFpWSfRLqcpNcavDY=; b=JdcDYSdZs0beHwiKhzrD00R+5hFKeU40iNExADF2dvSvrvI7cj3iOvfd8wSnPUe6Qj +Tjnj2DsE2GfkOLKaPJZksb5KjTja1cXGTxWWc7pO28XgqOM16/yh7hH77vlU642rDNY 2WCl1sNK8hqVv32z2Ob5JjONllW6JzkdB2DcE=
MIME-Version 1.0
From Calvin Spealman <ironfroggy@gmail.com>
Date Wed, 15 Feb 2012 17:43:17 -0500
Subject Stand-Alone Python Executable Skeletons
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To ironfroggy@gmail.com
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5863.1329345819.27778.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1329345819 news.xs4all.nl 6840 [2001:888:2000:d::a6]:49046
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20484

Show key headers only | View raw


I've recently been looking into different options to package python
code into stand-alone executables, with tools like Py2EXE and
PyInstaller, but I'm left feeling a little lost. Documentation seems
sparse on all of them, the setups a little unusual to me. It feels
like they could be a lot simpler, or that I could put in some
preliminary work to make it easier for my needs in the long run. I'm
hoping someone can help me pick the best option.

What I would love to do (or know if it is possible) is have a set of
executables, for Linux, Windows, and OS X, with a Zip archive appended
to the end of them. I know the zip archive at the end of an executable
works with EXE and ELF binaries, but does it work for whatever OSX
uses (I have no mac machines, currently)? I'd like to build these
three empty stand-alone python executables, setup such that they'll
run any main.py sitting at the top level of the archive. After this,
building for all three platforms would just be a matter of copying the
empty versions and dumping the project into it.

I'm leaning on doing this with PyInstaller being the easiest. Am I
headed in the right direction? Ideally, these empty stand-alones could
be distributed for use by others without any tools required to use
them other than a zip utility.

-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Stand-Alone Python Executable Skeletons Calvin Spealman <ironfroggy@gmail.com> - 2012-02-15 17:43 -0500

csiph-web