The Python module packages add useful objects to the Python language. Modules utilized by packages throughout BLFS are listed here, along with their dependencies. Installation of the modules shown on this page is meant to follow from top to bottom to handle optional dependencies in each module.
D-Bus Python provides Python bindings to the D-Bus.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.4.tar.gz
Download MD5 sum: 7372a588c83a7232b4e08159bfd48fe5
Download size: 600 KB
Estimated disk space required: 9.3 MB (both versions with tests)
Estimated build time: 0.4 SBU (both versions with tests)
dbus-glib-0.106 and Python-2.7.12 and/or Python-3.5.2
User Notes: http://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/python \ ../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-1.2.4 && make && popd
To test the results, issue: make -C python2 check.
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.4 && 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
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-7.10 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pyatspi/2.20/pyatspi-2.20.2.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pyatspi/2.20/pyatspi-2.20.2.tar.xz
Download MD5 sum: 26d32a2c821403295bc21027fe8a7b47
Download size: 292 KB
Estimated disk space required: 4.9 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyatspi2
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To build PyAtSpi2 as the Python 2 module, run the following commands:
mkdir python2 && pushd python2 && ../configure --prefix=/usr --with-python=/usr/bin/python && make && popd
To build PyAtSpi2 as the Python 3 module, run the following commands:
mkdir python3 && pushd python3 && ../configure --prefix=/usr --with-python=/usr/bin/python3 && make && popd
This package does not come with a testsuite.
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
Py2cairo provides Python 2 bindings to Cairo.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
Download MD5 sum: 20337132c4ab06c1146ad384d55372c5
Download size: 400 KB
Estimated disk space required: 3.6 MB
Estimated build time: less than 0.1 SBU
Python-2.7.12 and Cairo-1.14.6
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/py2cairo
Install Py2cairo by running the following commands:
./waf configure --prefix=/usr && ./waf build
The test suite must be run after the package is installed.
Now, as the root
user:
./waf install
The test suite requires the optional pytest package. If installed, it is run by
changing to the test
directory and
running py.test as
an unprivileged user.
PyCairo provides Python 3 bindings to Cairo.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://cairographics.org/releases/pycairo-1.10.0.tar.bz2
Download MD5 sum: e6fd3f2f1e6a72e0db0868c4985669c5
Download size: 244 KB
Estimated disk space required: 3.0 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pycairo
Install PyCairo by running the following commands:
patch -Np1 -i ../pycairo-1.10.0-waf_unpack-1.patch && wafdir=$(./waf unpack) && pushd $wafdir && patch -Np1 -i ../../pycairo-1.10.0-waf_python_3_4-1.patch && popd && unset wafdir && PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr && ./waf build
This package does not come with a test suite.
Now, as the root
user:
./waf install
PyGObject-2.28.6 provides Python 2 bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygobject/2.28/pygobject-2.28.6.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygobject/2.28/pygobject-2.28.6.tar.xz
Download MD5 sum: 9415cb7f2b3a847f2310ccea258b101e
Download size: 732 KB
Estimated disk space required: 24 MB
Estimated build time: 0.2 SBU
GLib-2.48.2 and Py2cairo-1.10.0
gobject-introspection-1.48.0 and libxslt-1.1.29 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject2
Install PyGObject by running the following commands:
patch -Np1 -i ../pygobject-2.28.6-fixes-1.patch && sed -i "/seems to be moved/s/^/#/" ltmain.sh && ./configure --prefix=/usr --disable-introspection && make
This package does not have a working testsuite.
Now, as the root
user:
make install
sed -i ... ltmain.sh: This sed silences several useless and annoying warnings generated by libtool.
--disable-introspection
: Omit this
switch if you have installed gobject-introspection-1.48.0.
Note that it conflicts with PyGObject-3.20.1.
--disable-docs
: This option disables
the rebuilding of the html documentation if libxslt-1.1.29 is
installed.
PyGObject3 provides Python bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygobject/3.20/pygobject-3.20.1.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygobject/3.20/pygobject-3.20.1.tar.xz
Download MD5 sum: 4354c6283b135f859563b72457f6a321
Download size: 734 KB
Estimated disk space required: 23 MB (both modules, with tests)
Estimated build time: 0.4 SBU (both modules, with tests)
gobject-introspection-1.48.0 and Py2cairo-1.10.0 (for Python 2 bindings) and/or PyCairo-1.10.0 (for Python 3 bindings)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject3
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To build PyGObject3 as the Python 2 module, run the following commands:
mkdir python2 && pushd python2 && ../configure --prefix=/usr --with-python=/usr/bin/python && make && popd
To test the results, issue: make -C python2 check. An already active graphical session with bus address is necessary to run the tests.
To build PyGObject3 as the Python 3 module, run the following commands:
mkdir python3 && pushd python3 && ../configure --prefix=/usr --with-python=/usr/bin/python3 && make && popd
To test the results, issue: make -C python3 check. An already active graphical session with bus address is necessary to run the tests.
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
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-7.10 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2
Download (FTP): ftp://ftp.gnome.org/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
Py2cairo-1.10.0 and Pango-1.40.1
Py2cairo-1.10.0 and GTK+-2.24.30.
Py2cairo-1.10.0 and libglade-2.6.4.
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygtk
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.29 is installed.
PyXDG is a Python library to access freedesktop.org standards.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): http://people.freedesktop.org/~takluyver/pyxdg-0.25.tar.gz
Download MD5 sum: bedcdb3a0ed85986d40044c87f23477c
Download size: 48 KB
Estimated disk space required: 800 KB
Estimated build time: less than 0.1 SBU
Python-2.7.12 and/or Python-3.5.2
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyxdg
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
Setuptools is a Python module that makes it easier to download, build, install, upgrade, and uninstall Python packages.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): https://pypi.python.org/packages/df/c3/4265eb901f9db8c0ea5bdfb344084d85bc96c1a9b883f70430254b5491f6/setuptools-26.1.0.tar.gz
Download MD5 sum: ca568d3139a4eaa8b6d3f97ffef11abf
Download size: 623 KB
Estimated disk space required: 11 MB
Estimated build time: less than 0.1 SBU
Python-2.7.12 and/or Python-3.5.2
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/setuptools
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
Beaker is a Python module that implements caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): https://pypi.python.org/packages/source/B/Beaker/Beaker-1.8.0.tar.gz
Download MD5 sum: 24ba6056b69312ac21f80124cc18cd75
Download size: 36 KB
Estimated disk space required: 1.6 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Beaker
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
MarkupSafe is a Python module that implements a XML/HTML/XHTML Markup safe string.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz
Download MD5 sum: f5ab3deee4c37cd6a922fb81e730da6e
Download size: 16 KB
Estimated disk space required: 780 KB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/MarkupSafe
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To build the Python 2 module, run the following command:
python setup.py build
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To build the Python 3 module, run the following command:
python3 setup.py build
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
Jinja2 is a Python module that implements a simple pythonic template language.
This package is known to build and work properly using an LFS-7.10 platform.
Download (HTTP): https://pypi.python.org/packages/f2/2f/0b98b06a345a761bec91a079ccae392d282690c2d8272e708f4d10829e22/Jinja2-2.8.tar.gz
Download MD5 sum: edb51693fe22c53cee5403775c71a99e
Download size: 352 KB
Estimated disk space required: 7.9 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Jinja2
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
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-7.10 platform.
Download (HTTP): https://pypi.python.org/packages/source/M/Mako/Mako-1.0.4.tar.gz
Download MD5 sum: c5fc31a323dd4990683d2f2da02d4e20
Download size: 564 KB
Estimated disk space required: 5.6 MB
Estimated build time: less than 0.1 SBU
Beaker-1.8.0 and MarkupSafe-0.23
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Mako
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To install the Python 3 module,
run the following command as the root
user:
sed -i "s:mako-render:&3:g" setup.py && python3 setup.py install --optimize=1
sed -i "s:mako-render:&3:g" setup.py: This sed prevents setup.py from overwriting an already installed script by the Python 2 module. Remove it if you are building this module only for Python 3.
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-7.10 platform.
Download (HTTP): http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz
Download MD5 sum: f50e08ef0fe55178479d3a618efe21db
Download size: 244 KB
Estimated disk space required: 13 MB
Estimated build time: 0.1 SBU
Python-2.7.12 and/or Python-3.5.2 and YAML-0.1.6
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/PyYAML
Both Python 2 and Python 3 modules can be built and installed without any conflicts.
To build the Python 2 module, run the following command:
python setup.py build
To install the Python 2 module,
run the following command as the root
user:
python setup.py install --optimize=1
To build the Python 3 module, run the following command:
python3 setup.py build
To install the Python 3 module,
run the following command as the root
user:
python3 setup.py install --optimize=1
Last updated on 2016-06-05 20:35:53 -0700