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.15: Added
--os ubuntuand--os ubuntu22 - 1.0.14: Bug fix
- 1.0.13: Bug fix
- 1.0.12: Bug fix
- 1.0.11: Os path cleanup
- 1.0.9: Better support for
ubuntu - 1.0.8: Enables experimental
ubuntudocker 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
--osparameter 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-compile-1.0.15.tar.gz.
File metadata
- Download URL: python-compile-1.0.15.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f54a7e26c729354f825ca832e2e961d6409be024b17f49d74a2305d51f68c268
|
|
| MD5 |
47ad30929a9031b6d166f596b901fc10
|
|
| BLAKE2b-256 |
9315a09e1a29389278744c2ee52e95536c92d359b62ab76c62faa9cdf3c7f0bb
|
File details
Details for the file python_compile-1.0.15-py2.py3-none-any.whl.
File metadata
- Download URL: python_compile-1.0.15-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 |
c7155c9bbd89289f93d0856d2cd71766988b69eec03d77dc0c0ba9d465a22df2
|
|
| MD5 |
78ba17a6f3c78d0a1424ce70c81b49ce
|
|
| BLAKE2b-256 |
d7cf0faba52c8e0416a20a049d72fb0ae707004549725bed4580b421d876ad97
|