Python Standalone Builds¶

This project produces self-contained, highly-portable Python

distributions. These Python distributions contain a fully-usable,

full-featured Python installation: most extension modules from

the Python standard library are present and their library

dependencies are either distributed with the distribution or

are statically linked.

The Python distributions are built in a manner to minimize

run-time dependencies. This includes limiting the CPU instructions

that can be used and limiting the set of shared libraries required

at run-time. The goal is for the produced distribution to work on

any system for the targeted architecture.

Some distributions ship with their build artifacts (object files,

libraries, etc) along with rich metadata describing the distribution

and how it was assembled. The build artifacts can be recombined by

downstream repackagers to derive a custom Python distribution, possibly

without certain features like SQLite and OpenSSL. This is useful for

embedding Python in a larger binary. See the

PyOxidizer sister project

for such a downstream repackager.

PyOxidizer

Many users of these distributions might be better served by the

PyOxy

sister project. PyOxy takes these Python distributions and adds some

Rust code for enhancing the functionality of the Python interpreter.

The official PyOxy release binaries are single file executables providing

a full-featured Python interpreter.

PyOxy

Contents:

Running Distributions

Obtaining Distributions

Extracting Distributions

Runtime Requirements

Extra Python Software

Licensing

Reconsuming Build Artifacts

Running Distributions

Obtaining Distributions

Obtaining Distributions

Extracting Distributions

Extracting Distributions

Runtime Requirements

Runtime Requirements

Extra Python Software

Extra Python Software

Licensing

Licensing

Reconsuming Build Artifacts

Reconsuming Build Artifacts

Building

Linux

macOS

Windows

Building

Linux

Linux

macOS

macOS

Windows

Windows

Behavior Quirks

If special keys do not work in the Python REPL

No tix on UNIX

No pip.exe on Windows

Linking Static Library on macOS

Use of libedit on Linux

References to Build-Time Paths

Former quirks

Behavior Quirks

If special keys do not work in the Python REPL

If special keys do not work in the Python REPL

No tix on UNIX

No tix on UNIX

No pip.exe on Windows

No pip.exe on Windows

Linking Static Library on macOS

Linking Static Library on macOS

Use of libedit on Linux

Use of libedit on Linux

References to Build-Time Paths

References to Build-Time Paths

Former quirks

Former quirks

Technical Notes

How It Works

Setup.local Hackery

Dependency Notes

Upgrading CPython

Technical Notes

How It Works

How It Works

Setup.local Hackery

Setup.local Hackery

Dependency Notes

Dependency Notes

Upgrading CPython

Upgrading CPython

Distribution Archives

Full Archive

Install Only Archive

Distribution Archives

Full Archive

Full Archive

Install Only Archive

Install Only Archive

Project Status

Target Notes

Test Failures

Test Skips

Project Status

Target Notes

Target Notes

Test Failures

Test Failures

Test Skips

Test Skips

Indices and tables¶

Index

Index

Index

Search Page

Search Page

Search Page

python-build-standalone

python-build-standalone

Navigation

Contents:

Running Distributions

Running Distributions

Building

Building

Behavior Quirks

Behavior Quirks

Technical Notes

Technical Notes

Distribution Archives

Distribution Archives

Project Status

Project Status

Related Topics

Documentation overview

Next: Running Distributions

Documentation overview

Next: Running Distributions

Running Distributions

Quick search

Sphinx 5.0.2

Alabaster 0.7.12

Page source