1#!/bin/bash 2# 3# This script builds python in the dir 4# installed/python-${DEST} from package downloads/Python-{PKG_VERS}.tgz 5# 6 7set -e 8 9REG_TEST_DIR=$1 10DEST=$2 11PKG_VERS=$3 12 13SUB_MAKES_MINUS_J=-j4 14 15BUILD_DIR=${REG_TEST_DIR}/build 16 17mkdir -p ${BUILD_DIR} 18(cd ${BUILD_DIR} && tar -xf ${REG_TEST_DIR}/downloads/Python-$PKG_VERS.tgz) 19(cd ${BUILD_DIR}/Python-$PKG_VERS && 20 ./configure --enable-shared --enable-ipv6 --without-cxx \ 21 --with-threads --prefix=${REG_TEST_DIR}/installed/python-$DEST && 22make ${SUB_MAKES_MINUS_J} && 23make install) 24rm -fr ${BUILD_DIR}/Python-$PKG_VERS 25