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:
- Python-2.0
Dependencies:
- musl (libc)
- make
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
cd /sources,tar -xf, andcd Python-...: Enter the Python source tree from the staged archive.ax_cv_c_float_words_bigendian=no: Preanswers Python's float word-order configure probe for the target.lbi_configure: Applies the book's/systeminstall layout to Python's configure step.--enable-shared: Builds a sharedlibpythonfor extension modules and embedding users.--without-ensurepip: Skips bundled pip installation in this bootstrap Python.--without-static-libpython: Avoids installing the static Python library.--with-tzpath=and--with-platlibdir=libraries: Match the book's timezone and library-directory policy.make $LWI_MAKE_FLAGSandmake install: Build and install Python into the target environment.