%general-entities; ]> $LastChangedBy$ $Date$ Python-&python2-version; Python Introduction to Python 2 The Python 2 package contains the Python development environment. This is useful for object-oriented programming, writing scripts, prototyping large programs or developing entire applications. This version is for backward compatibility with other dependent packages. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &python2-md5sum; Download size: &python2-size; Estimated disk space required: &python2-buildsize; Estimated build time: &python2-time; Additional Downloads Optional HTML Documentation Download (HTTP): Download MD5 sum: &python2htmldoc-md5sum; Download size: &python2htmldoc-size; Python Dependencies Optional and (configure uses pkgconfig to find libffi. There is a circular dependency here: Pkgconfig requires Glib which requires Python 2), Sphinx (to create the docs), , , (there is a circular dependency with the Tk package as it requires Xorg to be installed but parts of Xorg depend on Python), BerkeleyDB (only versions up to 4.8), and . User Notes: Installation of Python Install Python by running the following commands: sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && ./configure --prefix=/usr --enable-shared && make To test the results, issue: make test. In order to use the help ('name_string') feature of the python interpreter with some statements and keywords, you must create or download the optional HTML documentation. If you have installed Sphinx and wish to create the HTML documentation: make -C Doc html Now, as the root user: make install && chmod -v 755 /usr/lib/libpython&python2-majorver;.so.1.0 If you created the html documentation with Sphinx then install it as the root user: install -v -m755 -d /usr/share/doc/Python-&python2-version; && cp -rfv Doc/build/html/* /usr/share/doc/python-&python2-version; Alternatively, you can download preformatted documentation from and install it as the root user: install -v -m755 -d /usr/share/doc/Python-&python2-version; && tar --strip-components=1 -C /usr/share/doc/Python-&python2-version; \ -xvf ../python-&python2-version;-docs-html.tar.bz2 && find /usr/share/doc/Python-&python2-version; -type d -exec chmod 0755 {} \; && find /usr/share/doc/Python-&python2-version; -type f -exec chmod 0644 {} \; Command Explanations : If you have installed Libffi and Pkgconfig, add this option to compile Python's _ctypes module using the system installed Libffi. Otherwise Python will compile its own copy of Libffi. sed -i "s/ndbm_libs = ..." setup.py: This command is used to fix a build problem with the GDBM library. chmod ...: Fix permissions for libraries to be consistent with other libraries. Configuring Python 2 In order for python to find the installed documentation, you must add the following environment variable to individual user's or the system's profile: export PYTHONDOCS=/usr/share/doc/Python-&python2-version; Contents Installed Programs Installed Libraries Installed Directories 2to3, pydoc, python, python-config, python&python2-majorver;, python&python2-majorver;-config, smtpd.py, and optionally if Tk is installed, idle libpython&python2-majorver;.so and numerous modules installed in /usr/lib/python&python2-majorver;/lib-dynload /usr/include/python&python2-majorver;, /usr/lib/python&python2-majorver;, and /usr/share/doc/python-&python2-version; Short Descriptions 2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code. 2to3 idle is a wrapper script that opens a Python aware GUI editor. idle pydoc is the Python documentation tool. pydoc python is an interpreted, interactive, object-oriented programming language. python python&python2-majorver; is a version-specific name for the python program. python&python2-majorver; smtpd.py is an SMTP proxy implemented in Python. smtpd.py