Python Dependencies

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 5. Programming

- Prev

  byacc-20260126

- Next

  Python Modules

- Up
- Home

# Python Dependencies

## Introduction to Python Dependencies

Python modules listed in Python Modules have dependencies that are not referenced by other packages in SLFS. These dependencies are listed here. They will not get updated on regular basis, unless a more recent version is needed.

### Important

In BLFS and SLFS, we normally build and install Python 3 modules with pip3. Please take care that the pip3 install commands in the book should be run as `root` unless it's for a Python virtual environment. Running pip3 install as a non-`root` user may seem to work fine, but it will cause the installed module to be inaccessible by other users.

pip3 install will not reinstall an already installed module by default. For using the pip3 install command to upgrade a module (for example, from meson-0.61.3 to meson-0.62.0), insert `--upgrade` into the command line. If it's really necessary to downgrade a module or reinstall the same version for some reason, insert `--force-reinstall` into the command line.

- structlog-25.5.0

- platformdirs-4.9.1

- pycurl-7.45.7

- toml-0.10.2

- tornado-6.5.4

## structlog-25.5.0

### Introduction to structlog Module

The structlog module offers an easy solution to logging.

- Download: https://files.pythonhosted.org/packages/source/s/structlog/structlog-25.5.0.tar.gz

#### structlog Dependencies

##### Required

hatch-fancy-pypi-readme and hatch_vcs

### Installation of structlog

Build the module:

    pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD

Now, as the `root` user:

    pip3 install --no-index --find-links=dist --no-cache-dir --no-user structlog

### Command Explanations

`-w dist`: Builds the appropriate “wheel” for this module in the directory `dist`.

`--no-build-isolation`: Tells pip3 to run the build in the system environment instead of creating a temporary build environment.

`--no-deps`: Prevents pip3 from building wheels for the project's dependencies.

`--no-index`: Ignores the package index (only looking at `--find-links` URLs instead).

`--find-links dist`: Looks for links to archives such as wheel (`.whl`) files in the directory `dist`.

`--no-cache-dir`: Disables the cache to prevent a warning when installing as the `root` user.

`--no-user`: Prevent mistakenly running the install command as a non-root user.

`--upgrade`: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.

`--force-reinstall`: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.

`--no-deps`: Do not install package dependencies. This option may be needed with the `--upgrade` or `--force-reinstall` options.

### Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/lib/python3.14/site-packages/structlog and /usr/lib/python3.14/site-packages/structlog-25.5.0.dist-info

## platformdirs-4.9.1

### Introduction to platformdirs Module

The platformdirs module provides standard directory paths on different platforms so that data is saved to the right path.

- Download: https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-4.9.1.tar.gz

#### platformdirs Dependencies

##### Required

hatch_vcs

### Installation of platformdirs

Build the module:

    pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD

Now, as the `root` user:

    pip3 install --no-index --find-links=dist --no-cache-dir --no-user platformdirs

### Command Explanations

`-w dist`: Builds the appropriate “wheel” for this module in the directory `dist`.

`--no-build-isolation`: Tells pip3 to run the build in the system environment instead of creating a temporary build environment.

`--no-deps`: Prevents pip3 from building wheels for the project's dependencies.

`--no-index`: Ignores the package index (only looking at `--find-links` URLs instead).

`--find-links dist`: Looks for links to archives such as wheel (`.whl`) files in the directory `dist`.

`--no-cache-dir`: Disables the cache to prevent a warning when installing as the `root` user.

`--no-user`: Prevent mistakenly running the install command as a non-root user.

`--upgrade`: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.

`--force-reinstall`: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.

`--no-deps`: Do not install package dependencies. This option may be needed with the `--upgrade` or `--force-reinstall` options.

### Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/lib/python3.14/site-packages/platformdirs and /usr/lib/python3.14/site-packages/platformdirs-4.9.1.dist-info

## pycurl-7.45.7

### Introduction to pycurl Module

The pycurl module offers access to cURL in Python scripts.

- Download: https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-7.45.7.tar.gz

#### pycurl Dependencies

##### Required

cURL

### Installation of pycurl

Build the module:

    pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD

Now, as the `root` user:

    pip3 install --no-index --find-links=dist --no-cache-dir --no-user pycurl &&
    mv -v /usr/share/doc/pycurl{,-7.45.7}

### Command Explanations

`-w dist`: Builds the appropriate “wheel” for this module in the directory `dist`.

`--no-build-isolation`: Tells pip3 to run the build in the system environment instead of creating a temporary build environment.

`--no-deps`: Prevents pip3 from building wheels for the project's dependencies.

`--no-index`: Ignores the package index (only looking at `--find-links` URLs instead).

`--find-links dist`: Looks for links to archives such as wheel (`.whl`) files in the directory `dist`.

`--no-cache-dir`: Disables the cache to prevent a warning when installing as the `root` user.

`--no-user`: Prevent mistakenly running the install command as a non-root user.

`--upgrade`: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.

`--force-reinstall`: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.

`--no-deps`: Do not install package dependencies. This option may be needed with the `--upgrade` or `--force-reinstall` options.

### Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/lib/python3.14/site-packages/pycurl, /usr/lib/python3.14/site-packages/pycurl-7.45.7.dist-info, and /usr/share/doc/pycurl-7.45.7

## toml-0.10.2

### Introduction to toml Module

The toml module can process and convert things from and to TOML.

- Download: https://files.pythonhosted.org/packages/source/t/toml/toml-0.10.2.tar.gz

### Installation of toml

Build the module:

    pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir --use-pep517 $PWD

Now, as the `root` user:

    pip3 install --no-index --find-links=dist --no-cache-dir --no-user toml

### Command Explanations

`-w dist`: Builds the appropriate “wheel” for this module in the directory `dist`.

`--no-build-isolation`: Tells pip3 to run the build in the system environment instead of creating a temporary build environment.

`--no-deps`: Prevents pip3 from building wheels for the project's dependencies.

`--no-index`: Ignores the package index (only looking at `--find-links` URLs instead).

`--find-links dist`: Looks for links to archives such as wheel (`.whl`) files in the directory `dist`.

`--no-cache-dir`: Disables the cache to prevent a warning when installing as the `root` user.

`--no-user`: Prevent mistakenly running the install command as a non-root user.

`--upgrade`: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.

`--force-reinstall`: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.

`--no-deps`: Do not install package dependencies. This option may be needed with the `--upgrade` or `--force-reinstall` options.

### Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/lib/python3.14/site-packages/toml and /usr/lib/python3.14/site-packages/toml-0.10.2.dist-info

## tornado-6.5.4

### Introduction to tornado Module

The tornado module offers an easy solution to logging.

- Download: https://files.pythonhosted.org/packages/source/t/tornado/tornado-6.5.4.tar.gz

#### tornado Dependencies

##### Recommended

pycurl-7.45.7 (for the cURL client)

### Installation of tornado

Build the module:

    pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD

Now, as the `root` user:

    pip3 install --no-index --find-links=dist --no-cache-dir --no-user tornado

### Command Explanations

`-w dist`: Builds the appropriate “wheel” for this module in the directory `dist`.

`--no-build-isolation`: Tells pip3 to run the build in the system environment instead of creating a temporary build environment.

`--no-deps`: Prevents pip3 from building wheels for the project's dependencies.

`--no-index`: Ignores the package index (only looking at `--find-links` URLs instead).

`--find-links dist`: Looks for links to archives such as wheel (`.whl`) files in the directory `dist`.

`--no-cache-dir`: Disables the cache to prevent a warning when installing as the `root` user.

`--no-user`: Prevent mistakenly running the install command as a non-root user.

`--upgrade`: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.

`--force-reinstall`: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.

`--no-deps`: Do not install package dependencies. This option may be needed with the `--upgrade` or `--force-reinstall` options.

### Contents

Installed Programs: None
Installed Libraries: None
Installed Directories: /usr/lib/python3.14/site-packages/tornado and /usr/lib/python3.14/site-packages/tornado-6.5.4.dist-info

- Prev

  byacc-20260126

- Next

  Python Modules

- Up
- Home