A distutils extension to create standalone Windows programs from Python code
py2exe
is a software to build standalone Windows executable programs from Python
scripts. py2exe
can build console executables and windows (GUI) executables.py2exe
supports the Python versions* included in the official development cycle.
Development of py2exe
is hosted here: https://github.com/py2exe/py2exe.
The detailed changelog is published on GitHub.
Version 0.13.0.2:
MemoryModule.c:PerformBaseRelocation
setuptools
v72matplotlib
, numpy
, and scipy
hookspy2exe
wheels build with setuptools
v70.0.0Version 0.13.0.1:
pkg_resources
to detect its vendored content automaticallymatplotlib
hook now does not exclude wx
automaticallymatplotlib
to support their use of delvewheel
numpy
and pandas
to support the new .libs
locationVersion 0.13.0.0:
win32
wheelswin32
wheels are still built and shipped but are provided untested. Issuesbuild_exe
command line interface. Please use the py2exe.freeze
API.Version 0.12.0.2:
scipy
versions newer than 1.9.2.py2exe.freeze
API.Version 0.12.0.1:
setup.py
API.Version 0.12.0.0:
py2exe.freeze
API. Documentation can be found here.setup.py py2exe
command and of distutils
is deprecated as per PEP 632. Bothwinrt
and passlib
.Version 0.11.1.1:
%APPDATA%
by defaultModuleFinder
now raises an explicit error if a required module is in excludes
pkg_resources
Stderr.write
method used for windows apps now returns the number of written bytesVersion 0.11.1.0:
importlib.metadata
)optimize
option when six
was in the bundleoptimize
flag for some packagesVersion 0.11.0.1:
Version 0.11.0.0:
mf310
written as a wrapper around CPython modulefinder.ModuleFinder
scipy
zipextimporter
can now be built as a standalone extension via its own setup scriptVersion 0.10.4.1:
ModuleFinder
: add support for the pkg_resources.extern.VendorImporter
loaderpkg_resources
and infi
Version 0.10.4.0:
zipextimporter
supports external modules that use multi-phase initialization (PEP 489)selenium
dllfinder
provides a new method to add data files in the zip archiveVersion 0.10.3.1:
pycryptodomex
ModuleFinder
: respect excludes list in import_package
matplotlib
>= 3.4.0Version 0.10.3.0:
matplotlib
3.2 and higher.Version 0.10.2.1:
MyLoadLibrary
to support ssl
with bundle_files=0
.Version 0.10.2.0:
DLLFinder
automatically excludes VC++ redist and Windows CRT DLLs from bundles.bundle_files<=2
(only the standard librarypycryptodome
and shapely
.Version 0.10.1.0:
urllib3
and pandas
.Version 0.10.0.2 (from versions 0.9.x):
certifi
, numpy
, tkinter
, socket
,ssl
, and six
.build_exe
: the zipfile=None
option has been removed.runtime
: the Python interpreter DLL is no longer altered beforepip install py2exe
Use the py2exe.freeze
function as documented here.
setup.py
script or the builderUsing a setup.py
script with py2exe
is deprecated. Please adapt your
scripts to use the new freeze
API. This interface will be removed in the
next major release.
The build_exe
(or -m py2exe
) CLI was removed in version 0.13.0.0.
win32
wheels are provided without testing. Users are encouraged towin_amd64
wheels (see #157).Further informations about the original development of py2exe
and other
usage guidelines can be found in the original README.