Python Modules

Introduction to Python Modules

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.

PyXML-0.8.4

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.

Package Information

PyXML Dependencies

Required

Python-2.5.2

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyxml

Installation of 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 ..

Command Explanations

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.

Contents

Installed Programs: xmlproc_parse and xmlproc_val
Installed Libraries: PyXML Python library modules
Installed Directories: /usr/lib/python2.5/site-packages/_xmlplus and /usr/share/doc/PyXML-0.8.4

Short Descriptions

xmlproc_parse

is a simple XML file parser using the xmlproc parser.

xmlproc_val

is a validating XML file parser using the xmlproc parser.

Pycairo-1.4.0

Pycairo provides Python bindings to Cairo.

Package Information

Pycairo Dependencies

Required

Python-2.5.2 and cairo-1.4.14

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pycairo

Installation of Pycairo

Install Pycairo by running the following commands:

./configure --prefix=/usr &&
make

Now, as the root user:

make install

To run the regression tests, the package must first be installed. Then, as an unprivileged user, issue the following commands:

(cd test && python test.py)

Contents

Installed Programs: None
Installed Libraries: Pycairo Python library module
Installed Directories: /usr/include/pycairo and /usr/lib/python2.5/site-packages/cairo

PyGObject-2.12.3

PyGObject provides Python bindings to the GObject class from GLib.

Package Information

PyGObject Dependencies

Required

Python-2.5.2 and GLib-2.12.12

Optional (to Build Documentation)

libxslt-1.1.22

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject

Installation of 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

Command Explanations

--disable-docs: This option disables the rebuilding of the html documentation if libxslt-1.1.22 is installed.

Contents

Installed Programs: None
Installed Libraries: PyGObject Python library module
Installed Directories: /usr/include/pygtk-2.0, /usr/share/pygobject and /usr/lib/python2.5/site-packages/gtk-2.0

PyGTK-2.10.6

PyGTK lets you to easily create programs with a graphical user interface using the Python programming language.

Package Information

PyGTK Dependencies

Required

PyGObject-2.12.3

Required (atk module)

ATK-1.18.0

Required (pango module)

Pango-1.16.4

Required (pangocairo module)

Pycairo-1.4.0 and Pango-1.16.4

Required (gtk and gtk.unixprint modules)

Pycairo-1.4.0 and GTK+-2.10.13

Required (gtk.libglade module)

Pycairo-1.4.0 and libglade-2.6.1

Optional

Numeric (version 24.2)

Optional (to Build Documentation)

libxslt-1.1.22

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygtk

Installation of 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

Command Explanations

--enable-docs: This option enables rebuilding the html documentation if libxslt-1.1.22 is installed.

Contents

Installed Programs: pygtk-codegen-2.0 and pygtk-demo
Installed Libraries: PyGTK Python library modules
Installed Directories: /usr/lib/pygtk, /usr/share/pygtk and /usr/lib/python2.5/site-packages/gtk-2.0

Short Descriptions

pygtk-codegen-2.0

is a wrapper script to run the PyGTK codegen module.

pygtk-demo

is a Python wrapper to run the PyGTK demo program.

PyORBit-2.14.3

This is a Python language binding for the ORBit2 CORBA implementation.

Package Information

PyORBit Dependencies

Required

Python-2.5.2 and ORBit2-2.14.7

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyorbit

Installation of 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

Contents

Installed Programs: None
Installed Libraries: PyORBit Python library module
Installed Directories: /usr/include/pyorbit-2

Gnome-Python-2.18.2

Gnome-Python provides Python modules for various GNOME libraries.

Package Information

Gnome-Python Dependencies

Required

PyGTK-2.10.6 and libgnome-2.18.0

Required (gnome.ui module)

PyORBit-2.14.3 and libgnomeui-2.18.1

Required (gnome.canvas module)

libgnomecanvas-2.14.0

Required (gnomevfs module bonobo support)

PyORBit-2.14.3

Required (bonobo.ui module)

libbonoboui-2.18.0

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gnome-python

Installation of 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

Contents

Installed Programs: None
Installed Libraries: Gnome-Python library modules
Installed Directories: /usr/include/gnome-python-2.0

Gnome-Python-Desktop-2.18.0

Gnome-Python-Desktop provides additional Python modules for GNOME libraries.

Package Information

Gnome-Python-Desktop Dependencies

Required

Gnome-Python-2.18.2

Required (gnomeapplet module)

GNOME Panel-2.18.3

Required (gnomeprint module)

libgnomeprint-2.18.0

Required (gnomeprint.ui module)

libgnomeprintui-2.18.0

Required (gtksourceview module)

gtksourceview-1.8.5

Required (wnck module)

libwnck-2.18.3

Required (totem.plparser module)

Totem-2.18.2

Required (gtop module)

LibGTop-2.14.9

Required (nautilusburn module)

Nautilus CD Burner-2.18.2

Required (mediaprofiles module)

GNOME Media-2.18.0

Required (rsvg module)

librsvg-2.16.1

Required (metacity module)

Metacity-2.18.5

Required (gnomekeyring module)

gnome-keyring-0.8.1

Required (gnomedesktop module)

GNOME Desktop-2.18.3

Required (bugbuddy module)

bug-buddy-2.18.1

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gnome-python-desktop

Installation of 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

Command Explanations

--enable-metacity: This option enables building the metacity module if Metacity-2.18.5 is installed.

Contents

Installed Programs: None
Installed Libraries: Gnome-Python-Desktop library modules
Installed Directories: None

Last updated on 2008-03-17 13:11:35 -0500