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.
Notify Python provides Python 2 bindings to the libnotify.
This package is known to build and work properly using an LFS-7.2 platform.
Download (HTTP): http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2
Download MD5 sum: d247cf79b46cef7495deb0a76334f81d
Download size: 212 KB
Estimated disk space required: 2.3 MB
Estimated build time: less than 0.1 SBU
libnotify-0.7.5 and PyGTK-2.24.0 (with GTK+-2.24.17 support).
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/notify-python
Install Notify Python by running the following commands:
patch -Np1 -i ../notify-python-0.1.1-libnotify-0.7-1.patch && ./configure --prefix=/usr && make
This package does not come with a testsuite.
Now, as the root user:
make install
Py2cairo provides Python 2 bindings to Cairo.
This package is known to build and work properly using an LFS-7.3 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.5 and Cairo-1.12.14
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
an an unprivileged user.
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.3 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: 730 KB
Estimated disk space required: 25 MB
Estimated build time: 0.2 SBU
GLib-2.34.3 and Py2cairo-1.10.0
gobject-introspection-1.34.2 and libxslt-1.1.28 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject2
If you have installed gobject-introspection-1.34.2, apply the required patch by running the following commands:
patch -p1 < ../pygobject-2.28.6-introspection-1.patch
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.34.2.
Note that it conflicts with PyGObject-3.4.2.
--disable-docs: This option disables
the rebuilding of the html documentation if libxslt-1.1.28 is
installed.
PyGObject-3.4.2 provides Python 2 bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS-7.2 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygobject/3.4/pygobject-3.4.2.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygobject/3.4/pygobject-3.4.2.tar.xz
Download MD5 sum: a17b3897507f179d643e02f5abf111ac
Download size: 604 KB
Estimated disk space required: 16 MB
Estimated build time: 0.1 SBU
gobject-introspection-1.34.2 and Py2cairo-1.10.0
libxslt-1.1.28 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject3
Install PyGObject by running the following commands:
./configure --prefix=/usr && make
To test the results, issue: make check.
Now, as the root user:
make install
--disable-docs: This
option disables the rebuilding of the html documentation if
libxslt-1.1.28 is installed.
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.3 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.32.5
Py2cairo-1.10.0 and GTK+-2.24.17.
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.28 is installed.
The pyatspi2 package contains Python2 bindings for the core components of GNOME Accessibility.
This package is known to build and work properly using an LFS-7.2 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pyatspi/2.6/pyatspi-2.6.0.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pyatspi/2.6/pyatspi-2.6.0.tar.xz
Download MD5 sum: 95c48cae83d1f6d6cd13615df14124e5
Download size: 284 KB
Estimated disk space required: 3.5 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyatspi2
Install pyatspi2 by running the following commands:
./configure --prefix=/usr && make
This package does not come with a testsuite.
Now, as the root user:
make install
Pyrex is language used for writing Python extension modules.
This package is known to build and work properly using an LFS-7.2 platform.
Download (HTTP): http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Pyrex-0.9.9.tar.gz
Download MD5 sum: 515dee67d15d4393841e2d60e8341947
Download size: 252 KB
Estimated disk space required: 4.0 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyrex
Install pyrex by running the
following commands as the root
user:
python setup.py install
python setup.py install: This command installs the package. There are other options available, see python setup.py --help-commands for details.
Last updated on 2013-05-30 21:16:59 +0000