%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. Notify Python-¬ify-python-version; notify-python Introduction to Notify Python Module Notify Python provides Python 2 bindings to the libnotify. &lfs71_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: ¬ify-python-md5sum; Download size: ¬ify-python-size; Estimated disk space required: ¬ify-python-buildsize; Estimated build time: ¬ify-python-time; Additional Downloads Required patch: Notify Python Dependencies Required and (with support). User Notes: Installation of Notify Python Install Notify Python by running the following commands: patch -Np1 -i ../notify-python-¬ify-python-version;-libnotify-0.7-1.patch && ./configure --prefix=/usr && make This package does not come with a testsuite. Now, as the root user: make install Contents Installed Directory /usr/lib/python&python2-majorver;/site-packages/gtk-2.0/pynotify 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. &lfs71_checked; 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 Python 2 bindings to Cairo. &lfs72_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: ./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 Contents Installed Libraries Installed Directory _cairo.so /usr/include/pycairo and /usr/lib/python&python2-majorver;/site-packages/cairo PyGObject-&pygobject2-version; PyGObject Introduction to PyGObject Module PyGObject-&pygobject2-version; provides Python 2 bindings to the GObject class from GLib. &lfs72_checked; 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; Additional Downloads Required patch (if you have installed ): PyGObject Dependencies Required and Optional and (to Build Documentation) User Notes: Installation of PyGObject Install PyGObject by running the following commands: patch -p1 < ../pygobject-&pygobject2-version;-introspection-1.patch && ./configure --prefix=/usr && make This package does not have a working testsuite. Now, as the root user: make install Command Explanations --disable-introspection: This switch is required if you have not installed 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, /usr/lib/python&python2-majorver;/site-packages/gtk-2.0/{gio,glib,gobject}, /usr/share/gtk-doc/html/pygobject and /usr/share/pygobject/2.0 PyGObject-&pygobject3-version; PyGObject Introduction to PyGObject Module PyGObject-&pygobject3-version; provides Python 2 bindings to the GObject class from GLib. &lfs72_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 (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 Library Installed Directories libpyglib-gi-2.0-python.so /usr/include/pygobject-3.0 and /usr/lib/python&python2-majorver;/site-packages/gi 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. &lfs72_checked; 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 and pygtk-demo. atk.so, _gtk.so, glade.so, gtkunixprint.so, pango.so and pangocairo.so. /usr/include/pygtk-2.0, /usr/lib/pygtk, /usr/lib/python&python2-majorver;/site-packages/gtk-2.0, /usr/share/gtk-doc/html/pygtk and /usr/share/pygtk. 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 Libraries Installed Directory gtksourceview2.so /usr/share/gtk-doc/html/pygtksourceview2 Short Descriptions gtksourceview2.so PyGtkSourceView Python library module. gtksourceview2.so pyatspi2-&pyatspi2-version; pyatspi2 Introduction to pyatspi2 The pyatspi2 package contains Python2 bindings for the core components of GNOME Accessibility. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pyatspi2-md5sum; Download size: &pyatspi2-size; Estimated disk space required: &pyatspi2-buildsize; Estimated build time: &pyatspi2-time; pyatspi2 Dependencies Required Recommended User Notes: Installation of pyatspi2 Install pyatspi2 by running the following commands: ./configure --prefix=/usr && make This package does not come with a testsuite. Now, as the root user: make install Contents Installed Directory /usr/lib/python&python2-majorver;/site-packages/pyatspi Pyrex-&pyrex-version; pyrex Introduction to Pyrex Module Pyrex is language used for writing Python extension modules. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pyrex-md5sum; Download size: &pyrex-size; Estimated disk space required: &pyrex-buildsize; Estimated build time: &pyrex-time; Pyrex Dependencies Required User Notes: Installation of Pyrex Install pyrex by running the following commands as the root user: python setup.py install Command Explanations python setup.py install: This command installs the package. There are other options available, see python setup.py --help-commands for details. Contents Installed Programs Installed Directories pyrexc /usr/lib/python&python2-majorver;/site-packages/Pyrex PyXDG-&pyxdg-version; pyxdg Introduction to PyXDG Module PyXDG is a Python library to access freedesktop.org standards. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &pyxdg-md5sum; Download size: &pyxdg-size; Estimated disk space required: &pyxdg-buildsize; Estimated build time: &pyxdg-time; PyXDG Dependencies Required User Notes: Installation of PyXDG Install PyXDG by running the following commands as the root user: python setup.py install Command Explanations python setup.py install: This command installs the package. There are other options available, see Python setup.py --help-commands for details. Contents Installed Directory /usr/lib/python&python2-majorver;/site-packages/xdg