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.
The PyXML package contains a
validating XML parser, an implementation of the SAX and DOM
programming interfaces, an interface to the Expat parser, and a C
helper module that can speed up xmllib.py by a factor of five. This is useful
for validating, parsing and manipulating XML files using Python
programs.
Download (HTTP): http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz
Download (FTP): ftp://mirror.ovh.net/gentoo-distfiles/distfiles/PyXML-0.8.4.tar.gz
Download MD5 sum: 1f7655050cebbb664db976405fdba209
Download size: 734 KB
Estimated disk space required: 14.6 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyxml
Install PyXML by running the following commands:
python setup.py build
Now, as the root user:
python setup.py install && install -v -m644 doc/man/xmlproc_*.1 /usr/share/man/man1 && install -v -m755 -d /usr/share/doc/PyXML-0.8.4 && cp -v -R doc demo test /usr/share/doc/PyXML-0.8.4 && install -v -m644 README* /usr/share/doc/PyXML-0.8.4
To run the regression tests, the package must first be installed. Then, as an unprivileged user, issue the following commands:
cd test && python regrtest.py && cd ..
python setup.py
build: This command copies the *.py files to a staging area and compiles the C
extensions.
python setup.py install: This command installs the package.
Py2cairo provides Python2 bindings to Cairo.
This package is known to build and work properly using an LFS-7.0 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
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pycairo
Install Py2cairo by running the following commands:
./configure --prefix=/usr && make
The test suite requires the optional pytest package. If installed, it is run by
changing to the test directory and
running py.test.
Now, as the root user:
make install
Pycairo provides Python bindings to Cairo.
Download (HTTP): http://cairographics.org/releases/pycairo-1.8.8.tar.gz
Download MD5 sum: 054da6c125cb427a003f5fd6c54f853e
Download size: 465 KB
Estimated disk space required: 3 MB
Estimated build time: 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pycairo
Install Pycairo by running the following commands:
./configure --prefix=/usr && make
This package does not come with a test suite.
Now, as the root user:
make install
PyGObject provides Python bindings to the GObject class from GLib.
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
gobject-introspection-1.30.0 and libxslt-1.1.26 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject
Install PyGObject by running the following commands:
./configure --prefix=/usr \
--disable-introspection &&
make
This package does not have a testsuite.
Now, as the root user:
make install
--disable-introspection:
This switch is required because the package cannot build against
recent versions of gobject-introspection.
--disable-docs: This option disables
the rebuilding of the html documentation if libxslt-1.1.26 is
installed.
PyGObject provides Python bindings to the GObject class from GLib.
This package is known to build and work properly using an LFS-7.0 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygobject/3.0/pygobject-3.0.3.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygobject/3.0/pygobject-3.0.3.tar.xz
Download MD5 sum: d17e2565e139d647e8ee50fd1126aa9e
Download size: 540 KB
Estimated disk space required: 16 MB
Estimated build time: 0.2 SBU
gobject-introspection-1.30.0 and libxslt-1.1.26 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject
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.26 is installed.
PyGTK lets you to easily create programs with a graphical user interface using the Python programming language.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygtk/2.17/pygtk-2.17.0.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.17/pygtk-2.17.0.tar.bz2
Download MD5 sum: 43d704343d7ca04a6e4ddd4fa73a3c55
Download size: 2.2 MB
Estimated disk space required: 65 MB
Estimated build time: 0.7 SBU
Pycairo-1.8.8 and Pango-1.29.4
Pycairo-1.8.8 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.26 is installed.
PyGtkSourceView contains python bindings for the version 2 of the GtkSourceView library.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-2.10.1.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-2.10.1.tar.bz2
Download MD5 sum: 2654354d61422fb79d8375fc3a3b5393
Download size: 283 KB
Estimated disk space required: 5 MB
Estimated build time: 0.4 SBU
gtksourceview-2.10.4 and PyGTK-2.17.0
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygtksourceview
Install PyGtkSourceView by running the following commands:
./configure --prefix=/usr && make
This package does not come with a test suite.
Now, as the root user:
make install
--disable-docs: This option disables
the documentation building and is required if DocBook is not installed.
--enable-gtk-doc: Use this parameter
if GTK-Doc is installed and you
wish to rebuild and install the API documentation.
Last updated on 2012-01-25 19:26:52 +0000