| 
					
				 | 
			
			
				@@ -43,9 +43,31 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sect2 role="installation"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <title>Installation of Python</title> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <para>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 <filename 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    class="directory">/usr/include</filename> and <filename 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    class="directory">/usr/lib</filename> directories. To prevent them 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    from being used, issue:</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<screen><userinput remap="pre">sed -i '/def add_multiarch_paths/a \        return' setup.py</userinput></screen> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <para>Prepare Python for compilation:</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<screen><userinput remap="configure">./configure --prefix=/tools --with-ensurepip=no</userinput></screen> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<screen><userinput remap="configure">./configure --prefix=/tools --without-ensurepip</userinput></screen> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <variablelist> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <title>The meaning of the configure option:</title> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <varlistentry> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <term><parameter>--without-ensurepip</parameter></term> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <listitem> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <para>This switch disables the Python installer, which is not needed 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          at this stage.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </listitem> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </varlistentry> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </variablelist> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <para>Compile the package:</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |