%general-entities; ]> $LastChangedBy$ $Date$ Python-&python3-version; Python Introduction to Python The Python package contains the Python development environment. This is useful for object-oriented programming, writing scripts, prototyping large programs or developing entire applications. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &python3-md5sum; Download size: &python3-size; Estimated disk space required: &python3-buildsize; Estimated build time: &python3-time; Additional Downloads Optional HTML Documentation Download (HTTP): Download MD5 sum: &python3htmldoc-md5sum; Download size: &python3htmldoc-size; Python Dependencies Recommended , and Optional Optional (For Additional Modules) , , 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 \ --with-system-expat \ --with-system-ffi && make To test the results, issue: make test. Note that if you have an existing Python installation which includes the PyXML module, the tests could produce a segmentation fault. Now, as the root user: make install && chmod -v 755 /usr/lib/libpython&python3-majorver;m.so && chmod -v 755 /usr/lib/libpython3.so There is no documentation installed using the instructions above. See the Doc/README.txt file in the source distribution for instructions on how to create the html. Alternatively, you can download preformatted documentation from . In order to use the help ('name_string') feature of the python interpreter with some statements and keywords, you must download (or create) the optional HTML documentation and install it. If you downloaded the HTML docs, issue the following commands as the root user: install -v -m755 -d /usr/share/doc/Python-&python3-version;/html && tar --strip-components=1 \ --no-same-owner \ --no-same-permissions \ -C /usr/share/doc/Python-&python3-version;/html \ -xvf ../python-&python3-version;-docs-html.tar.bz2 Command Explanations sed -i "s/ndbm_libs = ..." setup.py: This command is used to fix a build problem with the GDBM library. : This switch enables linking against system version of Expat. Remove if you have not installed recommended dependency . : This switch enables linking against system version of libffi. Remove if you have not installed recommended dependency . --with-dbmliborder=bdb:gdbm:ndbm: Use this switch if you want to build Python DBM Module against Berkeley DB instead of GDBM. chmod ...: Fix permissions for shared libraries to be consistent with other libraries. Configuring Python 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-&python3-version;/html Contents Installed Programs Installed Libraries Installed Directories 2to3 (symbolic link to 2to3-&python3-majorver;), 2to3-&python3-majorver;, pydoc3 (symbolic link to pydoc&python3-majorver;), pydoc&python3-majorver;, python3 (hard link to python&python3-majorver;m), python&python3-majorver; (hard link to python&python3-majorver;m), python&python3-majorver;m, python3-config (symbolic link to python&python3-majorver;-config), python&python3-majorver;-config (symbolic link to python3-config), python&python3-majorver;m-config, and optionally if Tk is installed, idle3 (symbolic link to idle&python3-majorver;), idle&python3-majorver; libpython&python3-majorver;m.so, libpython3.so and numerous modules installed in /usr/lib/python&python3-majorver; /usr/include/python&python3-majorver;m, /usr/lib/python&python3-majorver;, and /usr/share/doc/python-&python3-version; Short Descriptions idle3 is a wrapper script that opens a Python aware GUI editor. idle3 pydoc3 is the Python documentation tool. pydo3c python3 is an interpreted, interactive, object-oriented programming language. python3 python&python3-majorver; is a version-specific name for the python program. python&python3-majorver;