%general-entities; ]> $LastChangedBy$ $Date$ Python Modules 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-&pyxml-version; PyXML 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 Download (HTTP): Download (FTP): Download MD5 sum: &pyxml-md5sum; Download size: &pyxml-size; Estimated disk space required: &pyxml-buildsize; Estimated build time: &pyxml-time; PyXML Dependencies Required User Notes: 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-&pyxml-version; && cp -v -R doc demo test /usr/share/doc/PyXML-&pyxml-version; && install -v -m644 README* /usr/share/doc/PyXML-&pyxml-version; 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 Installed Libraries Installed Directories xmlproc_parse and xmlproc_val PyXML Python library modules /usr/lib/python&python2-majorver;/site-packages/_xmlplus and /usr/share/doc/PyXML-&pyxml-version; Short Descriptions xmlproc_parse is a simple XML file parser using the xmlproc parser. xmlproc_parse xmlproc_val is a validating XML file parser using the xmlproc parser. xmlproc_val Py2cairo-&py2cairo-version; Py2cairo Introduction to Py2cairo Module Py2cairo provides Python2 bindings to Cairo. &lfs70_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &py2cairo-md5sum; Download size: &py2cairo-size; Estimated disk space required: &py2cairo-buildsize; Estimated build time: &py2cairo-time; Py2cairo Dependencies Required and Optional pytest User Notes: 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 Installed Libraries Installed Directory None _cairo.so /usr/include/pycairo and /usr/lib/python2.7/site-packages/cairo Pycairo-&pycairo-version; Pycairo Introduction to Pycairo Module Pycairo provides Python bindings to Cairo. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pycairo-md5sum; Download size: &pycairo-size; Estimated disk space required: &pycairo-buildsize; Estimated build time: &pycairo-time; Pycairo Dependencies Required and User Notes: 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 Installed Libraries Installed Directories None Pycairo Python library module /usr/include/pycairo and /usr/lib/python&python2-majorver;/site-packages/cairo PyGObject-&pygobject2-version; PyGObject Introduction to PyGObject Module PyGObject provides Python bindings to the GObject class from GLib. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pygobject2-md5sum; Download size: &pygobject2-size; Estimated disk space required: &pygobject2-buildsize; Estimated build time: &pygobject2-time; PyGObject Dependencies Required and Optional and (to Build Documentation) User Notes: Installation of 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 Command Explanations --disable-introspection: This switch is required because the package cannot build against recent versions of gobject-introspection. : This option disables the rebuilding of the html documentation if is installed. Contents Installed Programs Installed Libraries Installed Directories pygobject-codegen-2.0 libpyglib-2.0-python.so, _gio.so, unix.so, _glib.so, and _gobject.so /usr/{include/pygtk-2.0, lib/python&python2-majorver;/site-packages/gtk-2.0/{gio,glib,gobject}, share/{gtk-doc/html/pygobject,pygobject/{2.0/{codegen,defs}, xsl}}} PyGObject-&pygobject3-version; PyGObject Introduction to PyGObject Module PyGObject provides Python bindings to the GObject class from GLib. &lfs70_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pygobject3-md5sum; Download size: &pygobject3-size; Estimated disk space required: &pygobject3-buildsize; Estimated build time: &pygobject3-time; PyGObject Dependencies Required and Optional and (to Build Documentation) User Notes: 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 is installed. Contents Installed Programs Installed Libraries Installed Directories pygobject-codegen-2.0 libpyglib-gi-2.0-python.so, _gio.so, _gi_cairo.so _gobject.so /usr/include/pygobject-3.0 and /usr/lib/python2.7 PyGTK-&pygtk-version; PyGTK Introduction to PyGTK Module PyGTK lets you to easily create programs with a graphical user interface using the Python programming language. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pygtk-md5sum; Download size: &pygtk-size; Estimated disk space required: &pygtk-buildsize; Estimated build time: &pygtk-time; PyGTK Dependencies Required Required (atk module) Required (pango module) Required (pangocairo module) and Required (gtk and gtk.unixprint modules) and Required (gtk.libglade module) and Optional NumPy Optional (to Build Documentation) User Notes: 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 is installed. Contents Installed Programs Installed Libraries Installed Directories pygtk-codegen-2.0 atk.so, _gtk.so, glade.so, gtkunixprint.so, pango.so, and pangocairo.so /usr/{include/pygtk-2.0/pygtk,lib/{pygtk/2.0/demos/images, python&python2-majorver;/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-codegen-2.0 pygtk-demo is a Python wrapper to run the PyGTK demo program. pygtk-demo PyGtkSourceView-&pygtksourceview-version; PyGtkSourceView Introduction to PyGtkSourceView Module PyGtkSourceView contains python bindings for the version 2 of the GtkSourceView library. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pygtksourceview-md5sum; Download size: &pygtksourceview-size; Estimated disk space required: &pygtksourceview-buildsize; Estimated build time: &pygtksourceview-time; PyGtkSourceView Dependencies Required and Recommended Optional User Notes: 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 : This option disables the documentation building and is required if DocBook is not installed. Contents Installed Programs Installed Libraries Installed Directory None gtksourceview2.so /usr/share/gtk-doc/html/pygtksourceview2 Short Descriptions gtksourceview2.so PyGtkSourceView Python library module. gtksourceview2.so