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

Introduction to PyXML 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.

Package Information

PyXML Dependencies

Required

Python-2.7.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.7/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.

Py2cairo-1.10.0

Introduction to Py2cairo Module

Py2cairo provides Python2 bindings to Cairo.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

Py2cairo Dependencies

Required

Python-2.7.2 and cairo-1.10.2

Optional

pytest

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

Installation of Py2cairo

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

Contents

Installed Programs: None
Installed Libraries: _cairo.so
Installed Directory: /usr/include/pycairo and /usr/lib/python2.7/site-packages/cairo

Pycairo-1.8.8

Introduction to Pycairo Module

Pycairo provides Python bindings to Cairo.

Package Information

Pycairo Dependencies

Required

Python-2.7.2 and cairo-1.10.2

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

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

Contents

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

PyGObject-3.0.3

Introduction to PyGObject Module

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.

Package Information

PyGObject Dependencies

Required

Python-2.7.2 and GLib-2.30.1

Optional

gobject-introspection-1.30.0 and libxslt-1.1.26 (to Build Documentation)

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.26 is installed.

Contents

Installed Programs: pygobject-codegen-2.0
Installed Libraries: libpyglib-gi-2.0-python.so, _gio.so, _gi_cairo.so _gobject.so
Installed Directories: /usr/include/pygobject-3.0 and /usr/lib/python2.7

PyGTK-2.17.0

Introduction to PyGTK Module

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

Package Information

PyGTK Dependencies

Required

PyGObject-3.0.3

Required (atk module)

atk-2.2.0

Required (pango module)

Pango-1.29.4

Required (pangocairo module)

Pycairo-1.8.8 and Pango-1.29.4

Required (gtk and gtk.unixprint modules)

Pycairo-1.8.8 and gtk+-2.24.8

Required (gtk.libglade module)

Pycairo-1.8.8 and libglade-2.6.4

Optional

NumPy

Optional (to Build Documentation)

libxslt-1.1.26

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.26 is installed.

Contents

Installed Programs: pygtk-codegen-2.0
Installed Libraries: atk.so, _gtk.so, glade.so, gtkunixprint.so, pango.so, and pangocairo.so
Installed Directories: /usr/{include/pygtk-2.0/pygtk,lib/{pygtk/2.0/demos/images, python2.7/site-packages/gtk-2.0/gtk}, share/{gtk-doc/html/pygtk/{cursors,icons,images},pygtk/2.0/defs}}

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.

PyGtkSourceView-2.10.1

Introduction to PyGtkSourceView Module

PyGtkSourceView contains python bindings for the version 2 of the GtkSourceView library.

Package Information

PyGtkSourceView Dependencies

Required

gtksourceview-2.10.4 and PyGTK-2.17.0

Recommended
Optional

GTK-Doc-1.18

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

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

Command Explanations

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

Contents

Installed Programs: None
Installed Libraries: gtksourceview2.so
Installed Directory: /usr/share/gtk-doc/html/pygtksourceview2

Short Descriptions

gtksourceview2.so

PyGtkSourceView Python library module.

PyORBit-2.24.0

Introduction to PyORBit Module

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

Package Information

PyORBit Dependencies

Required

Python-2.7.2 and ORBit2-2.14.19

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.28.1

Introduction to Gnome-Python Module

Gnome-Python provides Python modules for various GNOME libraries.

Package Information

Gnome-Python Dependencies

Required

PyGTK-2.17.0 and libgnome-2.30.0

Required (gnome.ui module)

PyORBit-2.24.0 and libgnomeui-2.24.3

Required (gnome.canvas module)

libgnomecanvas-2.30.1

Required (gnomevfs module bonobo support)

PyORBit-2.24.0

Required (bonobo.ui module)

libbonoboui-2.24.3

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: libpythonmethod.so, _bonobo.so, activation.so, ui.so, gconf.so, _gnome.so, ui.so, gnomecanvas.so, _gnomevfs.so, and gnomevfsbonobo.so
Installed Directories: /usr/{include/gnome-python-2.0, lib/python2.7/site-packages/gtk-2.0/{bonobo,gnomevfs}, share/{gtk-doc/html/pygnomevfs,pygtk/2.0/argtypes}}

Gnome-Python-Desktop-2.30.2

Introduction to Gnome-Python-Desktop Module

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

Package Information

Gnome-Python-Desktop Dependencies

Required

Gnome-Python-2.28.1

Required (gnomeapplet module)

GNOME Panel-2.30.2

Required (gnomeprint module)

libgnomeprint-2.18.7

Required (gnomeprint.ui module)

libgnomeprintui-2.18.5

Required (gtksourceview module)

gtksourceview-2.10.4 (Version 1.x required)

Required (wnck module)

libwnck-2.30.2

Required (totem.plparser module)

Totem-2.30.2

Required (gtop module)

LibGTop-2.28.1

Required (braseromedia and braseroburn modules)

brasero-2.30.2

Required (mediaprofiles module)

GNOME Media-2.30.0

Required (rsvg module)

librsvg-2.26.3

Required (metacity module)

Metacity-2.30.1

Required (gnomekeyring module)

gnome-keyring-2.30.3

Required (gnomedesktop module)

GNOME Desktop-2.30.2

Required (bugbuddy module)

bug-buddy-2.30.0

Required (evolution.ebook and evolution.ecal modules)

Evolution Data Server-2.30.2.1

Required (evince module)

Evince-2.30.2

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.30.1 is installed.

Contents

Installed Programs: None
Installed Libraries: braseroburn.so, braseromedia.so, evince.so, ebook.so, ecal.so, gnomeapplet.so, _gnomedesktop.so, gnomekeyring.so, _print.so, ui.so, gtop.so, mediaprofiles.so, rsvg.so, plparser.so, and wnck.so
Installed Directories: /usr/{lib/python2.7/site-packages/gtk-2.0/{evolution, gnomedesktop,gnomeprint,totem},share/gtk-doc/html/pygnomeprintui}
: None

Last updated on 2011-12-17 21:31:48 +0000