7.9. python 3.14.4

python provides the Python 3 runtime and standard library for build tooling and scripts inside chroot.

Input assumption: Python-3.14.4.tar.xz is already present in /sources from the chapter 4 source staging step.

Source URL: https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz

Licenses:

Dependencies:

python is a general-purpose programming language and runtime. we need it to provide python3 and the standard library for build scripts and tooling in later chapters.

Extract and Enter the Source Tree

cd /sources
tar -xf Python-3.14.4.tar.xz
cd Python-3.14.4

Configure python

Build note: no OpenSSL-compatible library is installed at this stage, so this Python build does not provide the optional _ssl module.
ax_cv_c_float_words_bigendian=no \
lbi_configure \
    --enable-shared \
    --without-ensurepip \
    --without-static-libpython \
    --with-tzpath= \
    --with-platlibdir=libraries

Build python

make $LWI_MAKE_FLAGS

Install python

make install

Command Explanations