Skip to main content

Compiles Python to an exe

Project description

python-compile

Compile python apps to linux executables using docker.

Linting MacOS_Tests Ubuntu_Tests Win_Tests

image

This project will use docker to compile your one file python app into a binary that's runnable on many linux systems. This is the easiest way to build an app and may work directly out of the box for many setups.

Work in progress remains for building Windows/MacOS apps via the docker system.

Example

python-compile --os debian --input demo_http_server.py --requirements requirements.txt

demo_http_server

Notes

Right now we use the nuitka build. If you want custom build options then feel free to create a PR.

Windows

This environment requires you to use git-bash.

Linting

Run ./lint.sh to find linting errors using pylint, flake8 and mypy.

Links

Releases

  • 1.0.7: Implement wheel support for the docker images.
  • 1.0.6: Better support for package isolation for native builds.
  • 1.0.5: You may now omit the --os parameter and compile against the current system.
  • 1.0.4: Fix
  • 1.0.3: Native windows compile is available if the host is also windows.

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

python-compile-1.0.7.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_compile-1.0.7-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-compile-1.0.7.tar.gz.

File metadata

  • Download URL: python-compile-1.0.7.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for python-compile-1.0.7.tar.gz
Algorithm Hash digest
SHA256 211d4338e0aca15c5f400e9091dee071ca6c2278d7f6b22d1fd209e95a5c99f2
MD5 42ca16497b4df5b0ac45a3454f4e294b
BLAKE2b-256 0e41bae725f31226426522b7d3b0c6bab6829662a985f335abe44676d56ed53b

See more details on using hashes here.

File details

Details for the file python_compile-1.0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_compile-1.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e7e446d6dd52afb8e3a36a88b6377399432e0312d819d01e84b2c1a49565e46f
MD5 1875099891dbdd5a88ff79c5e7d78ac6
BLAKE2b-256 2cc87dda851b78e6a838a9d61d160e4139a298774a7639b01f2b60e0ae94ec5c

See more details on using hashes here.

Supported by

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