%general-entities; ]> Python &python-version;
&python-url;
Python-&python-version; Python tools <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../chapter06/python.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&python-ch5-sbu;</seg> <seg>&python-ch5-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Python This package first builds the Python interpreter, then some standard Python modules. The main script for building modules is written in Python, and uses hard-coded paths to the host /usr/include and /usr/lib directories. To prevent them from being used, issue: sed -i '/def add_multiarch_paths/a \ return' setup.py Prepare Python for compilation: ./configure --prefix=/tools --without-ensurepip The meaning of the configure option: --without-ensurepip This switch disables the Python installer, which is not needed at this stage. Compile the package: make Compilation is now complete. The test suite requires TK and and X Windows and cannot be run at this time. Install the package: make install <para>Details on this package are located in <xref linkend="contents-python" role="."/></para> </sect2> </sect1>