[Python-Dev] Single-file Python executables (was: Computed Goto dispatch for Python 2)

Terry Reedy tjreedy at udel.edu
Fri May 29 16:42:43 CEST 2015


On 5/28/2015 4:29 PM, Paul Moore wrote:
> On 28 May 2015 at 20:47, Brett Cannon <brett at python.org> wrote:
>> I think it's to have a single tool to do it for any platform, not to have
>> the technical nuts and bolts be the same necessarily. I think it's also to
>> figure out if there is anything the interpreter and/or stdlib can do to
>> facilitate this.
>
> Precisely. At the moment, the story seems to be "if you're on Windows,
> use py2exe, if you're on OSX use py2app, or on Unix, ..., or..."
>
> What would be a compelling story is "to build your app into a single
> file executable, do "python -m build <myapp>". The machinery behind
> the build can be as different as necessary - but being able to use the
> same command on every platform is the goal.

The python-based ren'py visual novel development system has something 
like this  When one is ready to publish, there is an easy option to 
build single-file downloadable redistributables for any or all of 
Windows, Linux, and Mac.  I know it works as far as it goes because I 
help my wife use the system not for a novel, but a photo-based tutorial. 
  After testing the resulting files with the help of others on linux and 
mac systems (we developed on Windows), she put the files up on one of 
her university pages.

As far as I know, the build code should be Python, if anyone want to 
look at it.

-- 
Terry Jan Reedy



More information about the Python-Dev mailing list