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.2:
- Support
scipy
versions newer than 1.9.2. - Fixed documentation for the
py2exe.freeze
API.
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.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48800001730622215d099ed07595e5664263fdf407e120cf1cc02620f1bcf520 |
|
MD5 | 9572e05e6e361b1c79e68591b483f44a |
|
BLAKE2b-256 | b4d158630774d15f3d3c718ee8de157ff062a0b86b1407fd159972fc5c304336 |
Hashes for py2exe-0.12.0.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0e61a7037da8ade5e1ccd3c47f56bc52aeae8bea09dc63b82846e95cc912c6 |
|
MD5 | 66819cace04caa1314327c69f79ba991 |
|
BLAKE2b-256 | d74a39169f754e9e7161d6e7423f361648f3eb51fa8d7fed0ff5da306c23eb85 |
Hashes for py2exe-0.12.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f64addeb716797d39314211c35d8b1dd57f1641210db57985c9af628725dbc21 |
|
MD5 | 1884c3c5c943ee436de06a9e815fd4a2 |
|
BLAKE2b-256 | ed4dfcc068805330421326f14d51cb4888811801c366a14790f9e4ccc3b04861 |
Hashes for py2exe-0.12.0.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b75d2ca785af2b7441d04236ca605580f7f9e8c392ccf773fbb367a61f1087 |
|
MD5 | a9792b9fa9b4e453ff1622af819a6e22 |
|
BLAKE2b-256 | c7e28d567554421768d8b8adadf6bc3f9565ebd43a70e8316aceac531b503264 |
Hashes for py2exe-0.12.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4608f0c88d4eb04402d07c891584aa3030cafb2304b888004c3f6a81ce05b9 |
|
MD5 | 5b5ee8e865feff8e92c04d77ffbd6618 |
|
BLAKE2b-256 | ea4b03714f2be66772de43fbff9025d50e3fe3ecf306bc7cac29858caa463541 |
Hashes for py2exe-0.12.0.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873ee14dc9eb20976a321d3c867dfaeee6c457bec4f51d9c535f7e262addf58e |
|
MD5 | b96f2bd5bd4e3386d40ea9caaebe1e79 |
|
BLAKE2b-256 | b3e9271878c1cdabb9b3b7fcac37a5ad707ea2c6042989cfe3b9860cfa0aa4ae |
Hashes for py2exe-0.12.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6631a875d69fa5b6f40afb111508952513924af0c4dea489feb45361f45f4c8f |
|
MD5 | bce0785b5b64c4fe8c9583d8c12add3b |
|
BLAKE2b-256 | 8bba54ecc5e27d18387def5e37f79639c33d982182c22a136d81a556ae0fba40 |
Hashes for py2exe-0.12.0.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b646ac27b34f91181ab88fc12a6cdbec0212fa1ac5648e8f55d206afcbef88 |
|
MD5 | 39ba178c763508289aafc8167e27e7aa |
|
BLAKE2b-256 | a13c500802eba8316435913b0672718a84154b496b4bb0dc796dedfdd555268f |