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
Right now we use the nuitka build. If you want custom build options then feel free to create a PR.
This environment requires you to use git-bash
.
Run ./lint.sh
to find linting errors using pylint
, flake8
and mypy
.
- Cross compiler toolchain images in linux:
- MacOS images
- 1.0.16: Added a lot of overdue fixes and upgrades of deps.
- 1.0.15: Added
--os ubuntu
and--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
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.