New submission from Paul Moore:

The zipapp module allows users to bundle their application as a single file 
"executable". On Windows, the file is given a ".pyz" extension which is 
associated with the Python launcher. However, this approach is not always 
equivalent to a native executable (see for more 

I suggest adding an option to zipapp that prepends a small executable to the 
zipapp that uses the Python C API to launch the application. A prototype 
implementation (zastub) is available at

If this seems reasonable, I'll work up a full patch.

assignee: paul.moore
components: Library (Lib), Windows
messages: 277224
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Add an option to zipapp to produce a Windows executable
type: enhancement
versions: Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to