%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. &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. &lfs71_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/python2.7/site-packages/cairo PyGObject-&pygobject2-version; PyGObject Introduction to PyGObject Module PyGObject-&pygobject2-version; provides Python 2 bindings to the GObject class from GLib. &lfs71_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 < ../pygobject2-&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. &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 and _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. &lfs71_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. &lfs70_built; 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=$GNOME_PREFIX \ --sysconfdir=$GNOME_SYSCONFDIR \ --libexecdir=$GNOME_PREFIX/lib/pyatspi2 && make To test the results, issue: make check. Now, as the root user: make install Contents Installed Programs Installed Directory Accessibility.py, appevent.py, constants.py, deviceevent.py, document.py, editabletext.py, enum.py, interfaces.py, registry.py, role.py, state.py, text.py, and utils.py $GNOME_PREFIX/lib/python2.7/site-packages/pyatspi PyXDG-&pyxdg-version; pyxdg Introduction to PyXDG Module PyXDG is a Python library to access freedesktop.org standards. 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 Programs Installed Directories BaseDirectory.py, Config.py, Exceptions.py, IconTheme.py, IniFile.py, Locale.py, Menu.py and RecentFile.py. /usr/lib/python&python2-majorver;/site-packages/xdg IPython-&ipython-version; ipython Introduction to IPython Module IPython provides a rich toolkit to help you make the most out of using Python interactively. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &ipython-md5sum; Download size: &ipython-size; Estimated disk space required: &ipython-buildsize; Estimated build time: &ipython-time; IPython Dependencies Required ( or : not tested), and optional 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: Installation of 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. Command Explanations 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. Contents Installed Programs Installed Directories ipcluster, ipcontroller, ipengine, iplogger, iptest (if nose was installed), ipython, irunner, pycolor and a host of python scripts. /usr/lib/python&python2-majorver;/site-packages/IPython and /usr/share/doc/IPython. Short Descriptions ipcluster IPython parallel computing cluster control tool ipcluster ipcontroller IPython parallel computing controller control tool ipcontroller ipengine IPython parallel computing engine control tool ipengine iplogger IPython logger fpr parallel computing iplogger iptest runs the IPython testsuite iptest ipython Tools for Interactive Computing in Python ipython irunner is an interface to IPython's runner module irunner pycolor Colorize a python file or stdin using ANSI and print to stdout pycolor