The Python module packages add useful objects to the Python language. Modules utilized by packages throughout BLFS are listed here, along with their dependencies.
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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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: 2.6 MB
Estimated build time: less than 0.1 SBU
docbook-xsl-nons-1.79.2, fop-2.7, libxslt-1.1.35, 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 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
: diables
the cache to prevent a warning when installing as the
root
user.
D-Bus Python provides Python bindings to the D-Bus API interface.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.18.tar.gz
Download MD5 sum: 468874f3bf61d1b7deac98bbe2cfd8ac
Download size: 568 KB
Estimated disk space required: 10 MB (both versions, with tests)
Estimated build time: 0.3 SBU (both versions, with tests)
Python-2.7.18 (some applications in the book require the Python 2 module)
PyGObject-3.42.1 and tap.py (required for some tests)
docutils-0.18.1 and Sphinx with sphinx_rtd_theme
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/dbus-python
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To build D-Bus Python as the Python 2 module, run the following commands:
mkdir python2 && pushd python2 && PYTHON=/usr/bin/python2 \ ../configure --prefix=/usr --disable-documentation && make && popd
To test the results, issue: make -C python2 check. Several tests report an error due to dbus issues.
To build D-Bus Python as the Python 3 module, run the following commands:
mkdir python3 && pushd python3 && PYTHON=/usr/bin/python3 \ ../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-1.2.18 && make && popd
To test the results, issue: make -C python3 check.
To install the Python 2 module,
run the following command as the root
user:
make -C python2 install
To install the Python 3 module,
run the following command as the root
user:
make -C python3 install
docutils is a set of Python modules and programs for processing plaintext docs into formats such as HTML, XML, or LaTeX.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://downloads.sourceforge.net/docutils/docutils-0.18.1.tar.gz
Download MD5 sum: ca5827e2432fd58f4c8d74a6591135de
Download size: 1.9 MB
Estimated disk space required: 12 MB
Estimated build time: less than 0.1 SBU
User 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 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
: diables
the cache to prevent a warning when installing as the
root
user.
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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/py3c
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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.gnome.org/sources/pyatspi/2.38/pyatspi-2.38.2.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pyatspi/2.38/pyatspi-2.38.2.tar.xz
Download MD5 sum: 016c8bdcd950e11ad717043f4e91dedc
Download size: 312 KB
Estimated disk space required: 3.0 MB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pyatspi2
PyCairo provides Python bindings to Cairo.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/pygobject/pycairo/releases/download/v1.21.0/pycairo-1.21.0.tar.gz
Download MD5 sum: 682238eaa8bd7032e36a20b6f53824d1
Download size: 336 KB
Estimated disk space required: 2.9 MB
Estimated build time: less than 0.1 SBU
Hypothesis and pytest (for tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pycairo
The current version of pycairo no longer builds the Python2 module. If you need that module for packages such as Gimp-2.10.32, use PyCairo-1.18.2
Install PyCairo for Python3 by running the following commands:
mkdir build && cd build && meson --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
This version of PyCairo provides Python2 bindings to Cairo.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pycairo
This version of PyCairo is only retained for packages such as Gimp-2.10.32 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
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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/Legrandin/pycryptodome/archive/v3.15.0/pycryptodome-3.15.0.tar.gz
Download MD5 sum: 6b3d3639172861d5ecc03017dc70206c
Download size: 16 MB
Estimated disk space required: 53 MB
Estimated build time: 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pycryptodome
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
dbusmock is a Python library useful for writing tests for software which talks to D-Bus services.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/martinpitt/python-dbusmock/releases/download/0.28.0/python-dbusmock-0.28.0.tar.gz
Download MD5 sum: bc66e6ed9ea4c573dbdf208cf41a2177
Download size: 84 KB
Estimated disk space required: 848 KB
Estimated build time: less than 0.1 SBU
D-Bus Python-1.2.18 (runtime)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/dbusmock
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
Pygments is a general syntax highlighter written in Python, for more than 300 languages.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-2.12.0.tar.gz
Download MD5 sum: 2137c19d9ac0cc556badc89e746c0e62
Download size: 4.1 MB
Estimated disk space required: 49 MB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pygments
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
PyGObject-2.28.7 provides Python 2 bindings to the GObject class from GLib.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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.72.2, PyCairo-1.18.2 and Python-2.7.18
gobject-introspection-1.72.0 and libxslt-1.1.35 (to Build Documentation)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pygobject2
Install PyGObject by running the following commands:
./configure --prefix=/usr --disable-introspection && make
This package does not have a working testsuite.
Now, as the root
user:
make install
--disable-introspection
: Omit this
switch if you have installed gobject-introspection-1.72.0.
Note that it conflicts with PyGObject-3.42.1.
--disable-docs
: This option disables
the rebuilding of the html documentation if libxslt-1.1.35 is
installed.
PyGObject3 provides Python bindings to the GObject class from GLib.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.gnome.org/sources/pygobject/3.42/pygobject-3.42.1.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/pygobject/3.42/pygobject-3.42.1.tar.xz
Download MD5 sum: 8b2fa857229aaf526781376a20367ba8
Download size: 548 KB
Estimated disk space required: 7.1 MB
Estimated build time: 0.1 SBU
gobject-introspection-1.72.0 and PyCairo-1.21.0 (Python 3 module)
GTK-4.6.5, pep8, pyflakes, and pytest
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pygobject3
First, remove a faulty test:
mv -v tests/test_gdbus.py{,.nouse}
Install pygobject3 by running the following commands:
mkdir build && cd build && meson --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. One test, tests/test_gdbus.py
, is known to fail. Another
round of tests may report ERROR if GTK-4.6.5 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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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.7
PyCairo-1.18.2 and GTK+-2.24.33.
PyCairo-1.18.2 and libglade-2.6.4.
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pygtk
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.35 is installed.
PyXDG is a Python library to access freedesktop.org standards.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/pyxdg
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
These instructions provide the Python2 bindings for libxml2: the Python3 bindings are built as part of libxml2-2.9.14 and most packages in the book do not use these bindings for the older Python2.
By building these bindings after libxml2-2.9.14 has been installed, there is no need to rebuild the time-consuming (if all dependencies are used) main part of that package.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.tar.xz
Download MD5 sum: b7b3029ac6beb32a7925225515f83ca3
Download size: 3.0 MB
Estimated disk space required: 53 MB (2.3 MB installed)
Estimated build time: less than 0.1 SBU
libxml2-2.9.14 and Python-2.7.18
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libxml2
lxml provides Python bindings for libxslt-1.1.35 and libxml2-2.9.14.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://files.pythonhosted.org/packages/source/l/lxml/lxml-4.9.0.tar.gz
Download MD5 sum: a1db76441a1cd5f4857b7b326c960791
Download size: 3.2 MB
Estimated disk space required: 79 MB
Estimated build time: 0.9 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/lxml
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
Mako is a Python module that implements hyperfast and lightweight templating for the Python platform.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.2.0.tar.gz
Download MD5 sum: 2d8d1fe9c9be3fb20f62a9577c618575
Download size: 480 KB
Estimated disk space required: 3.2 MB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/Mako
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 Mako
-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
: diables
the cache to prevent a warning when installing as the
root
user.
PyYAML is a Python module that implements the next generation YAML parser and emitter.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://pyyaml.org/download/pyyaml/PyYAML-5.3.1.tar.gz
Download MD5 sum: d3590b85917362e837298e733321962b
Download size: 264 KB
Estimated disk space required: 15 MB
Estimated build time: 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/PyYAML
Buile 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 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
: diables
the cache to prevent a warning when installing as the
root
user.
Scour is an SVG (Scalable Vector Graphics) optimizer/cleaner that reduces their size by optimizing structure and removing unnecessary data.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/scour
When building, the procedure thinks that that the current version of six-1.16.0 is less than six-1.9. Fix that with:
sed -i '/requires/s/9/10/' setup.py
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 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
: diables
the cache to prevent a warning when installing as the
root
user.
Six is a Python 2 to 3 compatibility library.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
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
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/six
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 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
: diables
the cache to prevent a warning when installing as the
root
user.