OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

5.30.1. Installation of Python


Note

There are two package files whose name starts with “python”. The one to extract from is Python-3.7.4. tar.xz (notice the uppercase first letter).

Note

There are two package files whose name starts with “python”. The one to extract from is Python-3.7.4. tar.xz (notice the uppercase first letter).

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

sed -i '/def add_multiarch_paths/a \ return' setup.py

Prepare Python for compilation:


./configure --prefix=/tools --without-ensurepip

./configure --prefix=/tools --without-ensurepip

The meaning of the configure option:

--without-ensurepip

This switch disables the Python package installer, which is not needed at this stage.

Compile the package:


make

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

make install

Top OS Cloud Computing at OnWorks: