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.
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.
This is a Python language binding for the ORBit2 CORBA implementation.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pyorbit/2.24/pyorbit-2.24.0.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pyorbit/2.24/pyorbit-2.24.0.tar.bz2
Download MD5 sum: 574593815e75ee6e98062c75d6d1581f
Download size: 286 KB
Estimated disk space required: 4 MB
Estimated build time: 0.1 SBU
Python-2.7.2 and ORBit2-2.14.19
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyorbit
Install PyORBit 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
Gnome-Python provides Python modules for various GNOME libraries.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/gnome-python/2.28/gnome-python-2.28.1.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/gnome-python/2.28/gnome-python-2.28.1.tar.bz2
Download MD5 sum: a17ad952813ed86f520de8e07194a2bf
Download size: 549 KB
Estimated disk space required: 12 MB
Estimated build time: 0.3 SBU
PyGTK-2.17.0 and libgnome-2.30.0
PyORBit-2.24.0 and libgnomeui-2.24.3
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gnome-python
Install Gnome-Python 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
Gnome-Python-Desktop provides additional Python modules for GNOME libraries.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/gnome-python-desktop/2.30/gnome-python-desktop-2.30.2.tar.bz2
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/gnome-python-desktop/2.30/gnome-python-desktop-2.30.2.tar.bz2
Download MD5 sum: b90f6e96a6321e7bf859f6faff2aa4df
Download size: 584 KB
Estimated disk space required: 15 MB
Estimated build time: 0.3 SBU
gtksourceview-2.10.4 (Version 1.x required)
Evolution Data Server-2.30.2.1
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gnome-python-desktop
Install Gnome-Python-Desktop 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
--enable-metacity
: This
option enables building the metacity module if Metacity-2.30.1 is installed.
Last updated on 2011-12-17 21:31:48 +0000