Skip to main content

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.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.

Release files for python-compile 1.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-compile 1.0.15
File Size Uploaded
python-compile-1.0.15.tar.gz 28.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-compile 1.0.15
File Interpreter ABI Platform
python_compile-1.0.15-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 39.1 kB

Release files / python-compile-1.0.15.tar.gz

Download URL python-compile-1.0.15.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f54a7e26c729354f825ca832e2e961d6409be024b17f49d74a2305d51f68c268
BLAKE2b-256 checksum
How to use checksums
9315a09e1a29389278744c2ee52e95536c92d359b62ab76c62faa9cdf3c7f0bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Release files / python_compile-1.0.15-py2.py3-none-any.whl

Download URL python_compile-1.0.15-py2.py3-none-any.whl
Size 10.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c7155c9bbd89289f93d0856d2cd71766988b69eec03d77dc0c0ba9d465a22df2
BLAKE2b-256 checksum
How to use checksums
d7cf0faba52c8e0416a20a049d72fb0ae707004549725bed4580b421d876ad97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.0.15 This release

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page