From 791b6c7029f0b6fcbae872645ddf7cfb634d125a Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 14 Feb 2019 19:11:08 +0000 Subject: Fix a problem when building Python in Chapter 5 where some hosts may use host dependent headers. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11519 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/python.xml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'chapter05') diff --git a/chapter05/python.xml b/chapter05/python.xml index a52c08294..951185b31 100644 --- a/chapter05/python.xml +++ b/chapter05/python.xml @@ -43,9 +43,31 @@ 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 --with-ensurepip=no +./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: -- cgit v1.2.3-54-g00ecf