Package: py2exe
py2exe for Python 3py2exeis a software to build standalone Windows executable programs from Python
scripts.py2execan build console executables and windows (GUI) executables.py2exesupports the Python versions* included in theofficial development cycle.Development ofpy2exeis hosted here:https://github.com/py2exe/py2exe.ChangesThe detailed changelog is published onGitHub.Version 0.13.0.1:improved the hook forpkg_resourcesto detect its vendored content automaticallythematplotlibhook now does not excludewxautomaticallyadapted the hook formatplotlibto support their use ofdelvewheeladapted the hooks fornumpyandpandasto support the new.libslocationVersion 0.13.0.0:Add support for Python 3.11Drop support for Python 3.7Drop support forwin32wheelswin32wheels are still built and shipped but are provided untested. Issues
experienced when using these wheels will not be investigated.
Seehttps://github.com/py2exe/py2exe/discussions/157for further information.Removebuild_execommand line interface. Please use thepy2exe.freezeAPI.Version 0.12.0.2:Supportscipyversions newer than 1.9.2.Fixed documentation for thepy2exe.freezeAPI.Version 0.12.0.1:Fixed an issue that prevented builds via the deprecatedsetup.pyAPI.Version 0.12.0.0:Introduce the newpy2exe.freezeAPI. Documentation can be foundhere.Use of thesetup.py py2execommand and ofdistutilsis deprecated as per PEP 632. Both
these interfaces will be removed in the next major release. Seeherefor a migration guide.Add two hooks to fix the bundling ofwinrtandpasslib.Version 0.11.1.1:The log file for windows apps is now stored in%APPDATA%by defaultModuleFindernow raises an explicit error if a required module is inexcludesRestore hook functionality forpkg_resourcesTheStderr.writemethod used for windows apps now returns the number of written bytesVersion 0.11.1.0:Drop support for Python 3.6Include package metadata in the bundle archive (to be used by e.g.importlib.metadata)Fixed a bug that prevented to use theoptimizeoption whensixwas in the bundleFixed a bug that ignored theoptimizeflag for some packagesVersion 0.11.0.1:Show again relative paths in Tracebacks that happen from the frozen application
(#12 and #114)Version 0.11.0.0:New module findermf310written as a wrapper around CPythonmodulefinder.ModuleFinderAdd support for Python 3.10New hook forscipyzipextimportercan now be built as a standalone extension via its own setup scriptVersion 0.10.4.1:ModuleFinder: add support for thepkg_resources.extern.VendorImporterloaderNew hooks forpkg_resourcesandinfiVersion 0.10.4.0:zipextimportersupports external modules that use multi-phase initialization (PEP 489)New hook forseleniumdllfinderprovides a new method to add data files in the zip archiveVersion 0.10.3.1:New hook forpycryptodomexModuleFinder: respect excludes list inimport_packageUpdated hook formatplotlib>= 3.4.0Version 0.10.3.0:New hook for supportingmatplotlib3.2 and higher.Fix for including implicit namespace packages as per PEP420.Version 0.10.2.1:PatchMyLoadLibraryto supportsslwithbundle_files=0.Version 0.10.2.0:New module finder with support for implicit namespace packages (PEP 420).DLLFinderautomatically excludes VC++ redist and Windows CRT DLLs from bundles.Several fixes for bundling software withbundle_files<=2(only the standard library
is supported, other dependencies may or may not work).New hooks forpycryptodomeandshapely.Version 0.10.1.0:Add support for Python 3.9.Drop support for Python 3.5.New hooks forurllib3andpandas.Version 0.10.0.2 (from versions 0.9.x):Introduce compatibility with Python 3.5, 3.6, 3.7, and 3.8.Drop compatibility with Python 3.4 and earlier.New or updated hooks forcertifi,numpy,tkinter,socket,ssl, andsix.build_exe: thezipfile=Noneoption has been removed.runtime: the Python interpreter DLL is no longer altered before
being inserted in the executable bundle.Several bugfixes, better error messages.Installationpip install py2exeUsageUse thepy2exe.freezefunction as documentedhere.Using asetup.pyscript or the builderUsing asetup.pyscript withpy2exeis deprecated. Please adapt your
scripts to use the newfreezeAPI. This interface will be removed in the
next major release.Thebuild_exe(or-m py2exe) CLI was removed in version 0.13.0.0.Known issues and notesHigh-level methods or hooks to embed Qt plugins in the bundle (needed by
PySide2/PyQt5) are missing.(*)win32wheels are provided without testing. Users are encouraged to
use thewin_amd64wheels (see #157).CreditsFurther informations about the original development ofpy2exeand other
usage guidelines can be foundin the original README.