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.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.6.tar.gz
.
File metadata
- Download URL: python-compile-1.0.6.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c0f44db58e59874813f190d4a954651f47b471717b91dd93c2acb53fade9a0 |
|
MD5 | 40aeec64f86cc618665f2c0ce93c5e08 |
|
BLAKE2b-256 | 67af40cd0ce980a2ceab28a853de721b6296c18750fc17fbac23298172639b79 |
File details
Details for the file python_compile-1.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: python_compile-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 8.8 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 | 369d583261a96ce1b16ea9966f5d54cae3e32043677bceab29e67e4541533087 |
|
MD5 | 0209945c6c9a97f2133cee493ecbd2bd |
|
BLAKE2b-256 | 8401169841a46d8202a5d23f3f7d501f0f3db2fbdccccd5d00b5c5bbda0b6d7f |