Changeset 791b6c7 for chapter05/python.xml
- Timestamp:
- 02/14/2019 07:11:08 PM (5 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 7c6d782
- Parents:
- 75828c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/python.xml
r75828c3 r791b6c7 44 44 <title>Installation of Python</title> 45 45 46 <para>This package first builds the Python interpreter, then some 47 standard Python modules. The main script for building modules is 48 written in Python, and uses hard-coded paths to the host <filename 49 class="directory">/usr/include</filename> and <filename 50 class="directory">/usr/lib</filename> directories. To prevent them 51 from being used, issue:</para> 52 53 <screen><userinput remap="pre">sed -i '/def add_multiarch_paths/a \ return' setup.py</userinput></screen> 54 46 55 <para>Prepare Python for compilation:</para> 47 56 48 <screen><userinput remap="configure">./configure --prefix=/tools --with-ensurepip=no</userinput></screen> 57 <screen><userinput remap="configure">./configure --prefix=/tools --without-ensurepip</userinput></screen> 58 59 <variablelist> 60 <title>The meaning of the configure option:</title> 61 62 <varlistentry> 63 <term><parameter>--without-ensurepip</parameter></term> 64 <listitem> 65 <para>This switch disables the Python installer, which is not needed 66 at this stage.</para> 67 </listitem> 68 </varlistentry> 69 70 </variablelist> 49 71 50 72 <para>Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.