#!/bin/sh -e ./configure \ --prefix=/usr \ --without-ensurepip make make DESTDIR="$1" install rm "$1/usr/bin/2to3" rm "$1/usr/bin/python" # Make static library writable. chmod -v u+w "$1/usr/lib/libpython"*.a