2019-06-25 09:24:27 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-09-11 05:57:47 -06:00
|
|
|
patch -p1 < python3-always-pip.patch
|
|
|
|
|
2019-06-25 09:24:27 -06:00
|
|
|
./configure \
|
2019-06-27 03:10:08 -06:00
|
|
|
--prefix=/usr \
|
2019-09-09 04:19:14 -06:00
|
|
|
--enable-shared \
|
|
|
|
--with-system-expat \
|
|
|
|
--with-system-ffi \
|
2019-09-11 05:57:47 -06:00
|
|
|
--with-ensurepip=yes
|
2019-06-25 09:24:27 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
2019-06-25 11:08:58 -06:00
|
|
|
|
|
|
|
ln -s python3 "$1/usr/bin/python"
|
2019-08-28 12:55:53 -06:00
|
|
|
ln -s pip3 "$1/usr/bin/pip"
|
2019-08-29 18:31:47 -06:00
|
|
|
|
|
|
|
# Make static library writable.
|
2019-09-09 04:19:14 -06:00
|
|
|
chmod -v u+w "$1/usr/lib/libpython"*
|