Compiles Python to an exe
Project description
python-compile
Compile python apps to linux executables using docker.
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
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
- Cross compiler toolchain images in linux:
- MacOS images
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
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 Distribution
File details
Details for the file python-compile-1.0.9.tar.gz
.
File metadata
- Download URL: python-compile-1.0.9.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63bbb437dbd14212ae81edd27631e4fd38588ffedf72c25ebaf0f8ab05a1890 |
|
MD5 | 0719eedb02410d4aaa80499da82e7cc7 |
|
BLAKE2b-256 | 8e45006ebb09653d8e29e9cc903c8d07ea125d592099eae9559be0f84072f902 |
File details
Details for the file python_compile-1.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: python_compile-1.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34d9649b91ccd92fb13676c165e0afa7c3c0d9408b95e597a5832270e991382 |
|
MD5 | 720e7af85b492145fde6cd3f6072c8bf |
|
BLAKE2b-256 | b857502f8f4bafe8af1f4c453c28eb684838c5f1409a0ee654bfcd6378d53351 |