2019-06-25 15:24:27 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-09-11 11:57:47 +00:00
|
|
|
patch -p1 < python3-always-pip.patch
|
|
|
|
|
2020-02-07 23:55:12 +00:00
|
|
|
# Remove util-linux dependency.
|
|
|
|
cat >> Modules/Setup <<EOF
|
|
|
|
*disabled*
|
|
|
|
_uuid
|
|
|
|
EOF
|
|
|
|
|
2019-06-25 15:24:27 +00:00
|
|
|
./configure \
|
2019-06-27 09:10:08 +00:00
|
|
|
--prefix=/usr \
|
2019-09-09 10:19:14 +00:00
|
|
|
--enable-shared \
|
|
|
|
--with-system-expat \
|
|
|
|
--with-system-ffi \
|
2019-09-11 11:57:47 +00:00
|
|
|
--with-ensurepip=yes
|
2019-06-25 15:24:27 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
2019-06-25 17:08:58 +00:00
|
|
|
|
|
|
|
ln -s python3 "$1/usr/bin/python"
|
2019-08-28 18:55:53 +00:00
|
|
|
ln -s pip3 "$1/usr/bin/pip"
|
2019-08-30 00:31:47 +00:00
|
|
|
|
|
|
|
# Make static library writable.
|
2020-02-25 22:32:57 +00:00
|
|
|
chmod u+w "$1/usr/lib/libpython"*
|