Details on this package are located in Section 8.62.2, “Contents of Python 3.”
The Python 3 package contains the Python development environment. It is useful for object-oriented programming, writing scripts, prototyping large programs, and developing entire applications. Python is an interpreted computer language.
There are two package files whose name starts with the
“python”
prefix. The one to extract from is Python-3.14.7.tar.xz (notice the uppercase
first letter).
Prepare Python for compilation:
./configure --prefix=/usr \
--without-static-libpython \
--enable-shared \
--enable-optimizations \
--disable-test-modules
The meaning of the configure option:
--enable-shared
This switch prevents installation of static libraries.
--enable-optimizations
This switch enables extensive, but time-consuming, optimization steps. The interpreter is built twice; tests performed on the first build are used to improve the optimized version.
--without-static-libpython
This switch prevents building a large, but unneeded, static library.
Compile the package:
make
Some Python 3 modules can't be built now because the dependencies
are not installed yet. For the ssl
module, a message Python requires a
OpenSSL 1.1.1 or newer is outputted. The message should be
ignored. Just make sure the toplevel make command has not failed.
The optional modules are not needed now and they will be built in
Chapter 8.
Install the package:
make install
Details on this package are located in Section 8.62.2, “Contents of Python 3.”