Skip to main content

Build standalone executables for Windows

Project description

py2exe for Python 3

py2exe is a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scripts. Python versions included in the official development cycle are supported. py2exe can build console executables and windows (GUI) executables.

Development of py2exe is hosted here: https://github.com/py2exe/py2exe.

Changes

Detailed changelog is published on GitHub.

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 in excludes
  • 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 when six 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 CPython modulefinder.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 the pkg_resources.extern.VendorImporter loader
  • New hooks for pkg_resources and infi

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 in import_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 support ssl with bundle_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 and shapely.

Version 0.10.1.0:

  • Add support for Python 3.9.
  • Drop support for Python 3.5.
  • New hooks for urllib3 and pandas.

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, and six.
  • build_exe: the zipfile=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

Using a setup-script

Documentation about the setup-script and other usage tips are in the wiki pages at http://www.py2exe.org.

Using the builder

The build_exe CLI is not actively supported at the moment. Users are encouraged to create their own setup.py files. Documentation on how to use the CLI can be found here.

Known issues

  • Building isapi extensions is not supported.
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py2exe-0.11.1.1.tar.gz (121.0 kB view details)

Uploaded Source

Built Distributions

py2exe-0.11.1.1-cp310-cp310-win_amd64.whl (149.1 kB view details)

Uploaded CPython 3.10 Windows x86-64

py2exe-0.11.1.1-cp310-cp310-win32.whl (141.6 kB view details)

Uploaded CPython 3.10 Windows x86

py2exe-0.11.1.1-cp39-cp39-win_amd64.whl (149.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

py2exe-0.11.1.1-cp39-cp39-win32.whl (141.5 kB view details)

Uploaded CPython 3.9 Windows x86

py2exe-0.11.1.1-cp38-cp38-win_amd64.whl (149.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

py2exe-0.11.1.1-cp38-cp38-win32.whl (141.5 kB view details)

Uploaded CPython 3.8 Windows x86

py2exe-0.11.1.1-cp37-cp37m-win_amd64.whl (149.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

py2exe-0.11.1.1-cp37-cp37m-win32.whl (141.5 kB view details)

Uploaded CPython 3.7m Windows x86

File details

Details for the file py2exe-0.11.1.1.tar.gz.

File metadata

  • Download URL: py2exe-0.11.1.1.tar.gz
  • Upload date:
  • Size: 121.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1.tar.gz
Algorithm Hash digest
SHA256 210018c7f99fa74f9542d7ef5248abc1e19e7deac706e600fdbbbf1aac09cc91
MD5 ae1416798de36ff8c4924e6eec679981
BLAKE2b-256 8206955840501288e41a575b84d37be7405c04a2c0c7e249e794f79f3c55e263

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31423d29dfc767c9d523037f2b0c8c65343b600eb6cd7913a1e80e2e2edd4ca9
MD5 bdaabd8bdf7b4a9bc990cb15e087f20e
BLAKE2b-256 32457a9c564ba5d97c850f1fa9688afe8403d5a61540d2b3da9d957a1630293d

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp310-cp310-win32.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp310-cp310-win32.whl
  • Upload date:
  • Size: 141.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 04cb0b2f9ff4a443b6cde171a617f5b2306c1529cff58e90a8e046474abb2ca4
MD5 a815e168bb49629296cc04fbd5bcad8f
BLAKE2b-256 ddfd6528305a1866b42e585c037fc160db0e6d15b5bd779b774ec68b8790904f

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 13962fef7b185fe7aaef3b857d925950b49e60b801e1cf995135c8fe146b2dd3
MD5 15efb422a51e2c0554124d0d09048454
BLAKE2b-256 f56a900a4f3be3e0d3ef9ccb32dfcb7a72e7b5344de078b19d85c1f0b6917cbf

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp39-cp39-win32.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp39-cp39-win32.whl
  • Upload date:
  • Size: 141.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 beacf6d496eab738d55df9701eb60623e11169993552d9cb8d1f20c279d2b323
MD5 77ddafdf2fc6e8a2993680e048292111
BLAKE2b-256 3c865065fcaa2db972cd13f8a744833921844167f480b422951c0e3960c8ca0f

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3811065e043e3f9a588320ace57403d8a97917c8fe0f51759da71960abc441c2
MD5 4d8f77314ad69685a7ed1fa21d0e0805
BLAKE2b-256 e9fcf4b8a3637dffc61a65173b37ea22ab75684892c5658f79ae2a0f37b7a225

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 141.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3b156daf52de3bc24261ff05969148460fc04cc50e17b207c6cb78fe193958a3
MD5 f30b751bd424dbb9bf27bea1e8aa375e
BLAKE2b-256 754145b024d82b262f12d0fb955a0055e078d4d5c6bae9fa79a4281fe8ca283f

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5e1786411b02854a4cbb1dd3e1d16f6ff1920457170b3f33a67ade1a76d00ed8
MD5 d2496fc7a739577309ed4ef28e387d07
BLAKE2b-256 7ae7b8413dcdac9d04d3d2323b186e301c0512fa763bea4efad1ba6879da720d

See more details on using hashes here.

File details

Details for the file py2exe-0.11.1.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: py2exe-0.11.1.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 141.5 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for py2exe-0.11.1.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 55daf0a721ebb3eeebccffc22e3402a72f485ba32b9a826c4a16199a65847d93
MD5 a70303740ec965b58177dca2feafdec4
BLAKE2b-256 856ac4fa4efde348bc969690b228133057e5360ea4ad62a0ac516ad9e943b37f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page