Build standalone executables for Windows
Project description
py2exe for Python 3
py2exe
is a software to build standalone Windows executable
programs (32-bit and 64-bit) 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.
Changes
The detailed changelog is published on GitHub.
Version 0.12.0.1:
- Fixed an issue that prevented builds via the deprecated
setup.py
API.
Version 0.12.0.0:
- Introduce the new
py2exe.freeze
API. Documentation can be found here. - Use of the
setup.py py2exe
command and ofdistutils
is deprecated as per PEP 632. Both these interfaces will be removed in the next major release. See here for a migration guide. - Add two hooks to fix the bundling of
winrt
andpasslib
.
Version 0.11.1.1:
- The log file for windows apps is now stored in
%APPDATA%
by default ModuleFinder
now raises an explicit error if a required module is inexcludes
- Restore hook functionality for
pkg_resources
- The
Stderr.write
method used for windows apps now returns the number of written bytes
Version 0.11.1.0:
- Drop support for Python 3.6
- Include package metadata in the bundle archive (to be used by e.g.
importlib.metadata
) - Fixed a bug that prevented to use the
optimize
option whensix
was in the bundle - Fixed a bug that ignored the
optimize
flag for some packages
Version 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 finder
mf310
written as a wrapper around CPythonmodulefinder.ModuleFinder
- Add support for Python 3.10
- New hook for
scipy
zipextimporter
can now be built as a standalone extension via its own setup script
Version 0.10.4.1:
ModuleFinder
: add support for thepkg_resources.extern.VendorImporter
loader- New hooks for
pkg_resources
andinfi
Version 0.10.4.0:
zipextimporter
supports external modules that use multi-phase initialization (PEP 489)- New hook for
selenium
dllfinder
provides a new method to add data files in the zip archive
Version 0.10.3.1:
- New hook for
pycryptodomex
ModuleFinder
: respect excludes list inimport_package
- Updated hook for
matplotlib
>= 3.4.0
Version 0.10.3.0:
- New hook for supporting
matplotlib
3.2 and higher. - Fix for including implicit namespace packages as per PEP420.
Version 0.10.2.1:
- Patch
MyLoadLibrary
to supportssl
withbundle_files=0
.
Version 0.10.2.0:
- New module finder with support for implicit namespace packages (PEP 420).
DLLFinder
automatically excludes VC++ redist and Windows CRT DLLs from bundles.- Several fixes for bundling software with
bundle_files<=2
(only the standard library is supported, other dependencies may or may not work). - New hooks for
pycryptodome
andshapely
.
Version 0.10.1.0:
- Add support for Python 3.9.
- Drop support for Python 3.5.
- New hooks for
urllib3
andpandas
.
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 for
certifi
,numpy
,tkinter
,socket
,ssl
, andsix
. build_exe
: thezipfile=None
option has been removed.runtime
: the Python interpreter DLL is no longer altered before being inserted in the executable bundle.- Several bugfixes, better error messages.
Installation
pip install py2exe
Usage
Use the py2exe.freeze
function as documented here.
Using a setup.py
script or the builder
Using 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
CLI is not supported and will be removed in the next major
release.
Known issues
- High-level methods or hooks to embed Qt plugins in the bundle (needed by PySide2/PyQt5) are missing.
Credits
Further informations about the original development of py2exe
and other
usage guidelines can be found in the original README.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for py2exe-0.12.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c654480ad7767c1d6b1a3a9f2ee1f9603fbaa0b024707a4f7862e05c4d9fb4b6 |
|
MD5 | 5e966f98a8de2e9ac8e74ce126fe97a0 |
|
BLAKE2b-256 | c421516a73e6b5084244f27ce92afee5de557d17dd26bca787ea960c265d9886 |
Hashes for py2exe-0.12.0.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55598f41f023f2db668e47181ab09621d59a19e44c832c6f31b0fd97839503d |
|
MD5 | 1558c51a3aae5da1c7fad1f41320339c |
|
BLAKE2b-256 | e912719bf52d012f51621a0aab1d96283334674d2b25304193450887fd8d0eee |
Hashes for py2exe-0.12.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4f9a3887eff40f18be2b4183abc966ad018fb5bed2bd052cf9be7873283b5b |
|
MD5 | 674c2f7b9b05287327321067e25a5df3 |
|
BLAKE2b-256 | 7dc1aa1a4516e76e8d9120876a439ebd47654898b551efef3abb45507efcd435 |
Hashes for py2exe-0.12.0.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5823a6b46236abde71cd7c4ca3ca1bb72c888507f06e4db4e1c062a79cef98ec |
|
MD5 | ef767e0c5b7edf9d6cd6e0af5994a83b |
|
BLAKE2b-256 | f35a130daf56c22ecf40cd1096d1753e1306f9d2e2161c885e0099b52f29197d |
Hashes for py2exe-0.12.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50cdae09c4842a76c50880e4c92eef5c57762f140b95b35cfe779d29754419b4 |
|
MD5 | 88b7cb4469b5365b33a48362d71d0b6b |
|
BLAKE2b-256 | 636a112b1502667bb86553ffff82cb79070f498de42c269c9754f5789f3e44ea |
Hashes for py2exe-0.12.0.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a30ab5494e79e28deffcd99521a0dced5c57abcc9a25a7bd23de5bc13c1fe7a |
|
MD5 | d6d1c76a4d1325ed4f9f6e39ac5f9394 |
|
BLAKE2b-256 | 1fae7f12018b1c2a8c79844ae5579ab483d8b48be34d8eaba549426adc1bbc31 |
Hashes for py2exe-0.12.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33026b7ba3d47b17852e33d411d25a61fee23286bd479e8502c544b6b72af58a |
|
MD5 | 7154c85177d2219f5a16270a986553c2 |
|
BLAKE2b-256 | c27303422c504d5c1f3323cebbfbc18b0eef53809f98be49e40937945cdb66a5 |
Hashes for py2exe-0.12.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e13d0ef82c35362d828111326f5ded48e92e6eb26076931d3992abdbcb738da7 |
|
MD5 | c9fea4f6cba35a1c5247c3ae319e7e60 |
|
BLAKE2b-256 | b1098c8940e59907a85574999c37c0dbfafc5bc1a056ce3230524bebfda742e7 |