Python-3.11.1

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 13. Programming

- Prev

  Python-3.14.7

- Next

  Python Modules

- Up
- Home

# Python-3.11.1

## Introduction to Python 3.11

The Python 3.11 package contains an older version of the Python development environment. This is only needed for building seamonkey-2.53.24 because its build system has not been updated to support Python-3.14.7.

### Note

Do NOT install this package if you are not installing Seamonkey.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- Download (HTTP): https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz

- Download MD5 sum: 4efe92adf28875c77d3b9b2e8d3bc44a

- Download size: 19 MB

- Estimated disk space required: 301 MB

- Estimated build time: 1.1 SBU (Using parallelism=4)

### Additional Downloads

- Required patch for OpenSSL-4: https://www.linuxfromscratch.org/patches/blfs/svn/Python-3.11.1-openssl_4_fixes-1.patch

## Installation of Python 3.11

First apply a patch for building against OpenSSL-4:

    patch -Np1 -i ../Python-3.11.1-openssl_4_fixes-1.patch

Install Python 3.11 by running the following commands:

    ./configure --prefix=/opt/python3.11 \
                --disable-shared         \
                --with-system-expat      \
                --without-static-libpython &&
    make

Since this package is only used in very limited situations, tests are not recommended.

Now, as the `root` user:

    make install

## Command Explanations

CXX="/usr/bin/g++" ./configure ...: Avoid an annoying message during configuration.

`--prefix=/opt/python3.11`: This installs python 3.11 into /opt in order to avoid conflicts with the system version of python, and allows for easy removal/isolation once programs update to python3.12 or later.

`--disable-shared`: This switch disables building shared libraries. Since all the packages that need python-3.11 have built in modules and don't directly link to python, it is safe to turn off shared library support.

`--with-system-expat`: This switch enables linking against the system version of Expat.

## Contents

Installed Programs: python3.11
Installed Libraries: libpython3.11.a
Installed Directories: /opt/python3.11/include/python3.11, and /opt/python3.11/lib/python3.11,

### Short Descriptions

python3.11 | is a version-specific name for the python program

- Prev

  Python-3.14.7

- Next

  Python Modules

- Up
- Home