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.
This package is known to build and work properly using an LFS-7.1 platform.
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 Python 2 bindings to Cairo.
This package is known to build and work properly using an LFS-7.1 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/py2cairo
Install Py2cairo by running the following commands:
./waf configure --prefix=/usr && ./waf build
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:
./waf install
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.1 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
Required patch (if you have installed gobject-introspection-1.32.1): http://www.linuxfromscratch.org/patches/blfs/svn/pygobject-2.28.6-introspection-1.patch
Py2cairo-1.10.0 and pkg-config-0.26.
gobject-introspection-1.32.1 and libxslt-1.1.26 (to Build Documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pygobject2
Install PyGObject by running the following commands:
patch -p1 < ../pygobject-2.28.6-introspection-1.patch && ./configure --prefix=/usr && make
This package does not have a working testsuite.
Now, as the root user:
make install
--disable-introspection:
This switch is required if you have not installed gobject-introspection.
--disable-docs: This option disables
the rebuilding of the html documentation if libxslt-1.1.26 is
installed.
PyGObject-3.2.2 provides Python 2 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.2/pygobject-3.2.2.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pygobject/3.2/pygobject-3.2.2.tar.xz
Download MD5 sum: f895f1ec37f60c2ba528c2d760bcb69e
Download size: 540 KB
Estimated disk space required: 13 MB
Estimated build time: 0.2 SBU
Py2cairo-1.10.0 and gobject-introspection-1.32.1
libxslt-1.1.26 (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.26 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.1 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.30.0
Py2cairo-1.10.0 and gtk+-2.24.10.
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.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-3.4.2 and PyGTK-2.24.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.
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.0 platform.
Download (HTTP): http://ftp.gnome.org/pub/gnome/sources/pyatspi/2.4/pyatspi-2.4.0.tar.xz
Download (FTP): ftp://ftp.gnome.org/pub/gnome/sources/pyatspi/2.4/pyatspi-2.4.0.tar.xz
Download MD5 sum: 08248c386418ddcec0117b74e6866f94
Download size: 268 KB
Estimated disk space required: 3.7 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
To test the results, issue: make check.
Now, as the root user:
make install
PyXDG is a Python library to access freedesktop.org standards.
Download (HTTP): http://www.freedesktop.org/~lanius/pyxdg-0.19.tar.gz
Download MD5 sum: 9f33542e846d0fc1e0bfa992a8555b0a
Download size: 38 KB
Estimated disk space required: 728 KB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pyxdg
Install pyxdg 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.
IPython provides a rich toolkit to help you make the most out of using Python interactively.
Download (HTTP): http://archive.ipython.org/release/0.12/ipython-0.12.tar.gz
Download MD5 sum: 4cf9f23b1171b3517f9a7a2bfc875b5f
Download size: 8.9 MB
Estimated disk space required: 58 MB
Estimated build time: less than 0.1 SBU
Python-2.7.3 ( or Python-3.2.2 : not tested), and SQLite-3.7.11
sphinx (for building docs), pygments (for syntax higlighting documentation), nose (to build the test program), pexpect (for standalone doctests), and sphinx (for qtconsole, notebook, parallel computing)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ipython
Install ipython by running the
following commands as the root
user:
python setup.py install --prefix=/usr
If you built this against nose, you can run the testsuite after the package has been installed by entering: iptest. The tests test_startup_{,i}py (and perhaps others if you provided the optional dependencies) will fail.
python setup.py install
--prefix=/usr: This command installs the package.
The prefix ensures that the programs are located in /usr/bin instead of /usr/local/bin.
|
IPython parallel computing cluster control tool |
|
|
IPython parallel computing controller control tool |
|
|
IPython parallel computing engine control tool |
|
|
IPython logger fpr parallel computing |
|
|
runs the IPython testsuite |
|
|
Tools for Interactive Computing in Python |
|
|
is an interface to IPython's runner module |
|
|
Colorize a python file or stdin using ANSI and print to stdout |
Last updated on 2012-05-16 16:39:28 +0000