RC RANDOM CHAOS

Python Standalone Builds: portable, self-contained interpreters that run anywhere

· via Hacker News

Original source

Self-contained highly-portable Python distributions

Hacker News →

The python-build-standalone project ships fully-featured Python distributions that carry their own dependencies. Most standard-library extension modules are included, with their supporting libraries either bundled or statically linked, so the result is a complete interpreter that doesn’t lean on whatever happens to be installed on the host.

Portability is the design goal. The builds deliberately restrict which CPU instructions they use and which shared libraries they require at runtime, so a distribution targeting a given architecture should run on essentially any system for that architecture. Some builds also ship their raw artifacts — object files, libraries, and detailed metadata about how everything was assembled — letting downstream tools recombine them into custom interpreters that strip out components like SQLite or OpenSSL, which is handy for embedding Python inside a larger binary.

The project anchors an ecosystem of related tooling. PyOxidizer consumes these artifacts to repackage Python into standalone applications, while PyOxy wraps the distributions with Rust to produce single-file executables that deliver a full interpreter. Together they matter to anyone distributing Python software who wants predictable, dependency-free deployment rather than fighting per-system environment differences.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.