The Python module packages add useful objects to the Python language. Modules utilized by packages throughout BLFS are listed here, along with their dependencies.
If you want to run tests, several of the following modules depend
on the sqlite3
core python module
that has not been built in LFS. It is therefore recommended to
rebuild Python after installing the recommended dependency listed
in Python-3.11.4.
In BLFS, 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.
The Asciidoc package is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, and man page.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/a/asciidoc/asciidoc-10.2.0.tar.gz
Download MD5 sum: ecac3af818f7a65596efc6e243b520a0
Download size: 212 KB
Estimated disk space required: 4.3 MB
Estimated build time: less than 0.1 SBU
docbook-xsl-nons-1.79.2, fop-2.9, libxslt-1.1.38, Lynx-2.8.9rel.1, dblatex, and W3m
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
This package does not come with a test suite.
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user asciidoc
-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.
CSSSelect provides CSS selectors for Python.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/c/cssselect/cssselect-1.2.0.tar.gz
Download MD5 sum: 27fbafacce5447cb867acb240d35002a
Download size: 1.2 MB
Estimated disk space required: 512 KB (add 488 KB for tests)
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user cssselect
To test the installation issue pytest.
-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.
CacheControl is a port of the caching algorithms in httplib2 for use with requests session object. It was written because httplib2's better support for caching is often mitigated by its lack of thread safety. The same is true of requests in terms of caching.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/psf/cachecontrol/archive/refs/tags/v0.13.1/cachecontrol-0.13.1.tar.gz
Download MD5 sum: b35f762b298ea369a04a093161d4d2ec
Download size: 44 KB
Estimated disk space required: 344 KB
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user cachecontrol
This module does not have a working test suite.
-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.
The Cython package provides a compiler for writing C extensions for the Python language.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/cython/cython/releases/download/0.29.36/Cython-0.29.36.tar.gz
Download MD5 sum: a4d0f9fbc9c137f1a88937cd40e8c5ee
Download size: 2.1 MB
Estimated disk space required: 67 MB
Estimated build time: 0.5 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
This package does not come with a test suite.
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user Cython
-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.
is the Cython debugger |
|
is a compiler for code written in the Cython language. It outputs a C/C++ program which can be compiled with a C/C++ compiler |
|
is a compiler for code written in the Cython language. It outputs an extension module which is directly importable from Python |
dbusmock is a Python library useful for writing tests for software which talks to D-Bus services.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/python-dbusmock/python-dbusmock-0.29.1.tar.gz
Download MD5 sum: d3ab24018c7a7479d9af8e237be786b5
Download size: 92 KB
Estimated disk space required: 968 KB
Estimated build time: less than 0.1 SBU
Build the package with:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the package run the following as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user python-dbusmock
-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.
D-Bus Python provides Python bindings to the D-Bus API interface.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.3.2.tar.gz
Download MD5 sum: 33be8a4a766e1c7c9a377b8f934ce21a
Download size: 592 KB
Estimated disk space required: 4.0 MB
Estimated build time: less than 0.1 SBU
dbus-1.14.8, GLib-2.76.4, meson_python-0.12.0, and patchelf-0.17.2
Build the D-Bus Python module by running the following command:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
This package does not come with a test suite.
Now install the module as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user dbus-python
-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.
docutils is a set of Python modules and programs for processing plaintext docs into formats such as HTML, XML, or LaTeX.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/d/docutils/docutils-0.20.1.tar.gz
Download MD5 sum: 93bcfe0065cf1d0b6a0bcabeca7a2335
Download size: 2.0 MB
Estimated disk space required: 12 MB
Estimated build time: less than 0.1 SBU
Editor Notes: https://wiki.linuxfromscratch.org/blfs/wiki/docutils
To build the Python 3 applications, run the following command:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the Python
applications run the following as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user docutils && for f in /usr/bin/rst*.py; do ln -svf $(basename $f) /usr/bin/$(basename $f .py) done
To reduce the time needed for loading Python scripts,
pip3 install will
compile the scripts with extension .py
into byte code and save the result into
.pyc
files in the directory
__pycache__
. But this package
installs .py
scripts into
/usr/bin
. So the byte code files
for them will be installed into /usr/bin/__pycache__
, which is not allowed by
FHS. Still as the root
user,
remove this directory:
rm -rfv /usr/bin/__pycache__
-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.
converts documents into various formats |
|
generates (X)HTML documents from standalone reStructuredText sources |
|
generates (X)HTML documents from standalone reStructuredText sources |
|
generates HTML5 documents from standalone reStructuredText sources |
|
generates LaTeX documents from standalone reStructuredText sources |
|
generates plain unix manual documents from standalone reStructuredText sources |
|
generates OpenDocument/OpenOffice/ODF documents from standalone reStructuredText sources |
|
Fix a word-processor-generated styles.odt for odtwriter use |
|
generates pseudo-XML from standalone reStructuredText sources (for testing purposes) |
|
generates S5 (X)HTML slideshow from standalone reStructuredText sources |
|
generates LaTeX documents from standalone reStructuredText sources for compilation with the Unicode-aware TeX variants XeLaTeX or LuaLaTeX |
|
generates Docutils-native XML from standalone reStructuredText sources |
|
generates (X)HTML from reStructuredText-format PEP files |
The Doxypypy package is a doxygen filter for python.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/d/doxypypy/doxypypy-0.8.8.7.tar.gz
Download MD5 sum: 5773d0a7882df900cbda8ee5107e1ced
Download size: 45 KB
Estimated disk space required: 2.1 MB
Estimated build time: less than 0.1 SBU
chardet-5.1.0 and Doxygen-1.9.7 (at run time)
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user doxypypy
This package does not come with a working test suite.
-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.
The Doxyqml package allows using Doxygen to document QML classes.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/d/doxyqml/doxyqml-0.5.2.tar.gz
Download MD5 sum: f7b957fea48654c76837b0c5e9e3c2af
Download size: 28 KB
Estimated disk space required: 600 KB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user doxyqml
To test the installation, run:
pytest
The test_qmlclass.py test is known to fail.
-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.
Gi-DocGen is a document generator for GObject-based libraries. GObject is the base type system of the GNOME project. GI-Docgen reuses the introspection data generated by GObject-based libraries to generate the API reference of these libraries, as well as other ancillary documentation.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/g/gi-docgen/gi-docgen-2023.1.tar.gz
Download MD5 sum: 6d6690dad5daa5b155341ab2f49eaa6b
Download size: 2.4 MB
Estimated disk space required: 19 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
Markdown-3.4.1, Pygments-2.16.1, and typogrify-2.0.7
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user gi-docgen
To test the installation, issue pytest.
-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.
These instructions provide the Python2 bindings for libxml2: the Python3 bindings are built as part of libxml2-2.10.4 and most packages in the book do not use these bindings for the older Python2.
By building these bindings after libxml2-2.10.4 has been installed, there is no need to rebuild the time-consuming (if all dependencies are used) main part of that package.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://download.gnome.org/sources/libxml2/2.10/libxml2-2.10.4.tar.xz
Download MD5 sum: 76808c467a58c31e2dbd511e71d5fd13
Download size: 2.5 MB
Estimated disk space required: 49 MB (2.3 MB installed)
Estimated build time: less than 0.1 SBU
lxml provides Python bindings for libxslt-1.1.38 and libxml2-2.10.4.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/l/lxml/lxml-4.9.3.tar.gz
Download MD5 sum: 7298fdca14b10e7b71547ed02b894b25
Download size: 3.5 MB
Estimated disk space required: 109 MB
Estimated build time: 0.9 SBU
To build the Python 3 module, run:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the module, issue the following command as the
root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user lxml
-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.
Mako is a Python module that implements hyperfast and lightweight templating for the Python platform.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.2.4.tar.gz
Download MD5 sum: 651f365616611fcd4f2702a9002e2195
Download size: 485 KB
Estimated disk space required: 3.9 MB (add 1.2 MB for tests)
Estimated build time: less than 0.1 SBU (with tests)
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Install the module as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user Mako
To test the installation, issue pytest.
-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.
NumPy is the fundamental package for scientific computing with Python.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/n/numpy/numpy-1.25.2.tar.gz
Download MD5 sum: cee1996a80032d47bdf1d9d17249c34e
Download size: 10 MB
Estimated disk space required: 269 MB (add 146 MB for tests)
Estimated build time: 1.6 SBU (3.1 SBU for tests)
fortran from GCC-13.2.0, lapack and cblas, and openblas
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user numpy
The installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install hypothesis && python3 runtests.py deactivate
-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.
The Packaging library provides utilities that implement the interoperability specifications which have clearly one correct behaviour or benefit greatly from having a single shared implementation.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/packaging/packaging-23.1.tar.gz
Download MD5 sum: f7d5c39c6f92cc2dfa1293ba8f6c097c
Download size: 123 KB
Estimated disk space required: 2.5 MB (add 28 MB for tests)
Estimated build time: less than 0.1 SBU (0.2 SBU for tests)
pytest-7.4.0 and pretend
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user packaging
Assuming pytest-7.4.0 is installed, but the other optional dependency is not, the installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install pretend && python3 /usr/bin/pytest deactivate
-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.
Py3c helps you port C extensions to Python 3. It provides a detailed guide, and a set of macros to make porting easy and reduce boilerplate.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/encukou/py3c/archive/v1.4/py3c-1.4.tar.gz
Download MD5 sum: 53029afde7e0cf8672a2d69d378a0cfc
Download size: 47 KB
Estimated disk space required: 608 KB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
The Py3c package is a headers-only package and because of that, no configuration and compilation is required.
To test the package, issue:
make test-python3 && make test-python3-cpp
To install the Python 3 module,
run the following command as the root
user:
make prefix=/usr install
The PyAtSpi2 package contains Python bindings for the core components of the GNOME Accessibility.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://download.gnome.org/sources/pyatspi/2.46/pyatspi-2.46.0.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pyatspi/2.46/pyatspi-2.46.0.tar.xz
Download MD5 sum: 2b1ca71ad75a900ed0eb6d6d012f8bfc
Download size: 320 KB
Estimated disk space required: 3.8 MB
Estimated build time: less than 0.1 SBU
This version of PyCairo provides Python2 bindings to Cairo.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/pygobject/pycairo/releases/download/v1.18.2/pycairo-1.18.2.tar.gz
Download MD5 sum: be2ba51f234270dec340f28f1695a95e
Download size: 196 KB
Estimated disk space required: 2.3 MB
Estimated build time: less than 0.1 SBU
Cairo-1.17.6 and Python-2.7.18
Hypothesis (for tests)
This version of PyCairo is only retained for packages such as Gimp-2.10.34 which is stuck on Python2 until Gimp-3 is released.
Install PyCairo for Python2 by running the following commands:
python2 setup.py build
This package does not come with a test suite.
Now, as the root
user:
python2 setup.py install --optimize=1 && python2 setup.py install_pycairo_header && python2 setup.py install_pkgconfig
PyCairo provides Python bindings to Cairo.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/pygobject/pycairo/releases/download/v1.24.0/pycairo-1.24.0.tar.gz
Download MD5 sum: 9855a7b7a813d73b54a29f8b43529dea
Download size: 340 KB
Estimated disk space required: 3.0 MB
Estimated build time: less than 0.1 SBU
Hypothesis and pytest-7.4.0 (for tests)
The current version of pycairo no longer builds the Python2 module. If you need that module for packages such as Gimp-2.10.34, use PyCairo-1.18.2
Install PyCairo for Python3 by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
To run the tests, this package requires the optional pytest module. If it is installed, run the tests by running ninja test.
Now, as the root
user:
ninja install
PyCryptodome is a collection of both secure hash functions (such as SHA256 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.), and is a drop-in replacement for PyCrypto.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/Legrandin/pycryptodome/archive/v3.18.0/pycryptodome-3.18.0.tar.gz
Download MD5 sum: 37301ba099375e05db0dfb4d1800d6fe
Download size: 16 MB
Estimated disk space required: 54 MB
Estimated build time: 0.1 SBU
To build PyCryptodome as a Python 3 module, run the following command:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the module, run the following command as the
root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user pycryptodome
-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.
Pygments is a general syntax highlighter written in Python, for more than 300 languages.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-2.16.1.tar.gz
Download MD5 sum: 20cb967029c23389253326cf515dec8a
Download size: 4.7 MB
Estimated disk space required: 56 MB
Estimated build time: less than 0.1 SBU
Build the Python 3 module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the package run the following as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user Pygments
-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.
PyGObject-2.28.7 provides Python 2 bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
Download MD5 sum: ae48b60c690c4aa894e69e0c97802745
Download size: 728 KB
Estimated disk space required: 17 MB
Estimated build time: 0.1 SBU
GLib-2.76.4, PyCairo-1.18.2 and Python-2.7.18
gobject-introspection-1.76.1 and libxslt-1.1.38 (to Build Documentation)
Install PyGObject by running the following commands:
./configure --prefix=/usr --disable-introspection && make
This package does not have a working test suite.
Now, as the root
user:
make install
--disable-introspection
: Omit this
switch if you have installed gobject-introspection-1.76.1.
Note that it conflicts with PyGObject-3.44.1.
--disable-docs
: This option disables
the rebuilding of the html documentation if libxslt-1.1.38 is
installed.
PyGObject3 provides Python bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://download.gnome.org/sources/pygobject/3.44/pygobject-3.44.1.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pygobject/3.44/pygobject-3.44.1.tar.xz
Download MD5 sum: def9418983594c6a3330717bb640ca4d
Download size: 548 KB
Estimated disk space required: 16 MB (add 2.5 MB for tests)
Estimated build time: 0.1 SBU (with tests)
gobject-introspection-1.76.1 and PyCairo-1.24.0 (Python 3 module)
GTK-4.12.0, pep8, pyflakes, and pytest-7.4.0
First, remove a faulty test:
mv -v tests/test_gdbus.py{,.nouse}
Install pygobject3 by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja
To test the results, issue: ninja test. An already active graphical session with a bus address is necessary to run the tests. Another round of tests may report ERROR if GTK-4.12.0 is not installed.
Now, as the root
user:
ninja install
PyGTK lets you to easily create programs with a graphical user interface using the Python programming language.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2
Download MD5 sum: a1051d5794fd7696d3c1af6422d17a49
Download size: 2.2 MB
Estimated disk space required: 83 MB
Estimated build time: 0.7 SBU
PyGObject-2.28.7 and Python-2.7.18
PyCairo-1.18.2 and Pango-1.50.14
PyCairo-1.18.2 and GTK+-2.24.33.
PyCairo-1.18.2 and libglade-2.6.4.
First, adapt PyGTK to changes in Pango by removing undefined APIs:
sed -i '1394,1402 d' pango.defs
Install PyGTK by running the following commands:
./configure --prefix=/usr && make
The tests must be run from an active X display. If this is so, issue: make check.
Now, as the root
user:
make install
--enable-docs
: This
option enables rebuilding the html documentation if libxslt-1.1.38 is installed.
The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. It provides a library of classes that client code uses to construct the grammar directly in Python code.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-3.1.1.tar.gz
Download MD5 sum: bb8c8c6b8015ca5887ae2c37917ee82e
Download size: 868 KB
Estimated disk space required: 3.3 MB (add 27 MB for tests)
Estimated build time: less than 0.1 SBU (0.3 SBU for tests)
railroad-diagrams (also needed for tests)
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user pyparsing
Assuming pytest-7.4.0 is installed, but the other optional dependency is not, the installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install railroad-diagrams && python3 /usr/bin/pytest deactivate
-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.
The pySerial module encapsulates access to the serial port.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-3.5.tar.gz
Download MD5 sum: 1cf25a76da59b530dbfc2cf99392dc83
Download size: 156 KB
Estimated disk space required: 2.1 MB (add 0.2 MB for tests)
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user pyserial
To test the installation issue pytest.
-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.
The Pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/pytest/pytest-7.4.0.tar.gz
Download MD5 sum: 5d3fca31237efe6c2b81bc703b79659f
Download size: 1.3 MB
Estimated disk space required: 8.2 MB (add 44 MB for tests)
Estimated build time: less than 0.1 SBU (1.0 SBU for tests)
iniconfig-2.0.0, packaging-23.1, pluggy-1.0.0, and py-1.11.0
Pygments-2.16.1, requests-2.31.0, argcomplete, elementpath, hypothesis, mock, nose, sortedcontainers, and xmlschema
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user pytest
The installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install pytest[testing] && python3 /usr/bin/pytest deactivate
-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.
PyXDG is a Python library to access freedesktop.org standards.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/b0/25/7998cd2dec731acbd438fbf91bc619603fc5188de0a9a17699a781840452/pyxdg-0.28.tar.gz
Download MD5 sum: d9a1d04fe60c956f5e3b9de3b4ef4722
Download size: 76 KB
Estimated disk space required: 808 KB
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Install the module as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user pyxdg
-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.
PyYAML is a Python module that implements the next generation YAML parser and emitter.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-6.0.1.tar.gz
Download MD5 sum: c9246277af2d9a13b7018af267a0831a
Download size: 124 KB
Estimated disk space required: 8.0 MB
Estimated build time: less than 0.1 SBU
Build PyYAML with the following command:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, install the module as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user PyYAML
-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.
Recommonmark is a docutils-compatibility bridge to CommonMark. It allows writing CommonMark inside of Docutils and Sphinx projects. Recommonmark is now deprecated in favor of MyST-Parser. Unfortunately, LLVM-16.0.5 still depends on this module.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/r/recommonmark/recommonmark-0.7.1.tar.gz
Download MD5 sum: 3c550a76eb62006bf007843a9f1805bb
Download size: 34 KB
Estimated disk space required: 680 KB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
commonmark-0.9.1 and sphinx-7.1.2
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user recommonmark
Recommonmark is now deprecated in favor of MyST-Parser. For this reason, a lot of tests have to be disabled because they do not pass with recent versions of Sphinx. The installation can be partially tested with the following command:
pytest -k 'not (test_integration or test_code or test_headings or test_image or test_links or test_lists)'
-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.
generates a html document from markdown sources |
|
generates a latex document from markdown sources |
|
generates a manpage from markdown sources |
|
generates a pseudo-XML document from markdown sources |
|
generates a xetex document from markdown sources |
|
generates an XML document from markdown sources |
The Requests package is an elegant and simple HTTP library for Python, built for human beings. It allows sending HTTP/1.1 requests extremely easily.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/r/requests/requests-2.31.0.tar.gz
Download MD5 sum: 941e175c276cd7d39d098092c56679a4
Download size: 108 KB
Estimated disk space required: 1.4 MB (add 127 MB for tests)
Estimated build time: less than 0.1 SBU (0.7 SBU for tests)
charset-normalizer-3.0.1, idna-3.4, and urllib3-2.0.2
make-ca-1.12, with p11-kit-0.25.0 (both needed to use system https: certificates, removing an unnecessary dependency on the Certifi module).
PySocks (also needed for testing)
pytest-7.4.0, Flask<2, httpbin, MarkupSafe<2.1, pytest-mock, pytest-httpbin, sphinx<5, trustme, and Werkzeug<2
First apply a patch so that the same environment variable already used to point to system certificates in Python3 following the installation of make-ca can also be used by this module:
patch -Np1 -i ../requests-2.31.0-use_system_certs-1.patch
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user requests
Assuming pytest-7.4.0 is installed, but the other optional dependencies are not, the installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install --force-reinstall sphinx\<5 && pip3 install pytest-mock \ werkzeug\<2 \ flask\<2 \ pytest-httpbin \ pysocks \ trustme && pip3 install --force-reinstall Markupsafe\<2.1 && python3 /usr/bin/pytest tests deactivate
See make-ca-1.12 for how to set the environment variable, and for how local copies of the Certifi and Requests modules installed in a virtual environment will override the system certificates.
-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.
Scour is an SVG (Scalable Vector Graphics) optimizer/cleaner that reduces their size by optimizing structure and removing unnecessary data.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/scour-project/scour/archive/v0.38.2/scour-0.38.2.tar.gz
Download MD5 sum: ae30f52602802f8c7df3a32e1f72b325
Download size: 100 KB
Estimated disk space required: 1.3 MB
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
To install the module, run the following command as the
root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user scour
-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.
Six is a Python 2 to 3 compatibility library.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/s/six/six-1.16.0.tar.gz
Download MD5 sum: a7c927740e4964dd29b72cebfc1429bb
Download size: 36 KB
Estimated disk space required: 376 KB
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
This package does not come with a test suite.
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user six
-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.
The Sphinx package is a set of tools for translating some structured text formats into pretty documentation in various formats.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://github.com/sphinx-doc/sphinx/archive/v7.1.2/sphinx-7.1.2.tar.gz
Download MD5 sum: ae8427a2035ebd4359c3df8f5436c4b9
Download size: 6.6 MB
Estimated disk space required: 27 MB (add 40 MB for tests)
Estimated build time: less than 0.1 SBU (1.0 SBU for tests)
alabaster-0.7.13, Babel-2.11.0, docutils-0.20.1, imagesize-1.4.1, packaging-23.1, Pygments-2.16.1, requests-2.31.0, snowballstemmer-2.2.0, sphinxcontrib-applehelp-1.0.4, sphinxcontrib-devhelp-1.0.2, sphinxcontrib-htmlhelp-2.0.1, sphinxcontrib-jsmath-1.0.1, sphinxcontrib-qthelp-1.0.3, and sphinxcontrib-serializinghtml-1.1.5
cython-0.29.36, pytest-7.4.0, texlive-20230313, filelock, and html5lib
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinx
Assuming cython-0.29.36 and pytest-7.4.0 are installed, but the other optional dependency is not, the installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install html5lib filelock && python3 /usr/bin/pytest deactivate
Four subtests in tests/test_ext_math.py are known to fail.
-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.
creates an reST file from python modules and packages |
|
generates ReStructuredText from special directives contained in given input files |
|
generates documentation in various formats from ReStructuredText source files |
|
generates required files for a sphinx project |
The sphinx_rtd_theme module is a Sphinx theme designed to provide a great reader experience for documentation users on both desktop and mobile devices. This theme is used primarily on Read the Docs but can work with any Sphinx project.
This package is known to build and work properly using an LFS 12.0 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-1.2.2.tar.gz
Download MD5 sum: ea90571ea4ffb546d419c05faf86a838
Download size: 2.7 MB
Estimated disk space required: 35 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
sphinx-7.1.2 and sphinxcontrib-jquery-4.1
Fix wrong versions for dependencies:
sed -e s/0.19/0.21/ \ -e '/sphinx.*7/s/7/8/' \ -i setup.cfg
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
Now, as the root
user:
pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinx_rtd_theme
Assuming pytest-7.4.0 is installed, but the other optional dependency is not, the installation can be tested with the following commands:
python3 -m venv --system-site-packages testenv && source testenv/bin/activate && pip3 install readthedocs-sphinx-ext && python3 /usr/bin/pytest deactivate
Several tests return a warning because they use a deprecated sphinx API.
-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.