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.9: Better support for ubuntu
  • 1.0.8: Enables experimental ubuntu docker image support.
  • 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.10.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: python-compile-1.0.10.tar.gz
  • Upload date:
  • Size: 28.5 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.10.tar.gz
Algorithm Hash digest
SHA256 71a09bab0283baa4ed65ae44ce8f5fd1df8638784c624363f651d6a7bbb8326a
MD5 7618dd518f3c0558b2e62be57a4bd6b6
BLAKE2b-256 194c683d820496d5ba68926df23ef4803d9595ecaf92f7fed744ca856cccf516

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_compile-1.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b8b7bfe2603ce0f922b62063e7797e2d6ce154d8e371cce35f216f603c21cd14
MD5 d996520bd19bae6e4bd5a19e0fbcbed9
BLAKE2b-256 8de4126b8672e15eb74f1eb9feaae8929f41afc2abecc6acc9612dad9f3dee15

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