Skip to main content

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.0:

  • Introduce the new py2exe.freeze API. Documentation can be found here.
  • Use of the setup.py py2exe command and of distutils 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 and passlib.

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

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


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.12.0.0.tar.gz (123.5 kB view details)

Uploaded Source

Built Distributions

py2exe-0.12.0.0-cp310-cp310-win_amd64.whl (151.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

py2exe-0.12.0.0-cp310-cp310-win32.whl (144.2 kB view details)

Uploaded CPython 3.10 Windows x86

py2exe-0.12.0.0-cp39-cp39-win_amd64.whl (151.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

py2exe-0.12.0.0-cp39-cp39-win32.whl (144.2 kB view details)

Uploaded CPython 3.9 Windows x86

py2exe-0.12.0.0-cp38-cp38-win_amd64.whl (151.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

py2exe-0.12.0.0-cp38-cp38-win32.whl (144.2 kB view details)

Uploaded CPython 3.8 Windows x86

py2exe-0.12.0.0-cp37-cp37m-win_amd64.whl (151.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

py2exe-0.12.0.0-cp37-cp37m-win32.whl (144.1 kB view details)

Uploaded CPython 3.7m Windows x86

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0.tar.gz
  • Upload date:
  • Size: 123.5 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.12.0.0.tar.gz
Algorithm Hash digest
SHA256 1a5418369e2b45a71f584f5626b2e0214c5a969dc3562b49c8602ed477524f2d
MD5 b56ff914ace5d611eaa60cdf5df5a870
BLAKE2b-256 562b9ebd9edaafd97bbee40a705468fde78dfa5ba6aa9f3b3718a045af611868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 151.7 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.12.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bdc365e5da78db79960422fc9bfde4bf223d77086eebe24624f751b6197fa60e
MD5 d472432bf40a624dc711093546dc51a6
BLAKE2b-256 73eec6d32d414d12ed531c61835aaaca0e00b1fdc059d5bed8eb703e61856291

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 144.2 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.12.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a598d4a51dbe4c995cf9bf33b7dfe7a5738ea80330c777d0707245a5a2e95af8
MD5 00a3467ead33b61fe347a5da2c53cc40
BLAKE2b-256 004e32e7792b4db031835278784c361040fb61510f8ddd9926f57b6ac2341bd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 151.7 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.12.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 05c84e3571b0f121f10a0e04585b3c81ac8ec4a30a39d74973a71602075caa63
MD5 faef7e53f0873a2816212aaccbd607aa
BLAKE2b-256 b4555e0f3b62ad23a567637ce45f9307e5443917b628c45a78cf2f386ea8e227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 144.2 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.12.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 984a047d124b6f87e77416b888ffdf7c5a21a930ecce7785131a178b11590a9d
MD5 987a893527e1a5429971964cb1b09549
BLAKE2b-256 062a3a10ada9a08c3c67ac9f3bb275e5da1d852779e0b2e053035751e6f6c8df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 151.7 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.12.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 59be4582d291aaeb179e499e008f5c4c3d04257ca8b9d2c606dc8de153b57156
MD5 dd8831392cac2b3862d157e5a549ad15
BLAKE2b-256 e33d9ef5dc64ea9e0f56b08d27c8b09f473ec4a5e2483a59495193b6e8c4835a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 144.2 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.12.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bda39311fab33691fa7ff78ec2931d1f7b952d3502473e79ff342e16b0538705
MD5 ee1eacf1fb51e356e95a74060ee417cb
BLAKE2b-256 a3a8af9df43de8e5a76ae1a87c1b366a724cde137c6ac986798a398e3a7745d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 151.7 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.12.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e06ba562a8ce764da8755689355bbf0cd4ad19c57d07460ff78e66cba001fb92
MD5 f1eb1a729d61a5b55cae5d092fa61b83
BLAKE2b-256 0b4e7f7941aade5f11fc84776563521efc8d82909273c4e1a46ca3e5b99f9edb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2exe-0.12.0.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 144.1 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.12.0.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 2fdbfbd45ae106548f3b72cef0cf3e2622bf4048bcf35678627d92626192a508
MD5 fa6df17878dfdbba75e60a71b6eb2881
BLAKE2b-256 d66f431852b052d380825a826a15d03d9f4b7631ffa2d706d97bd7e036d1c7b8

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