forked from kiss-community/repo
26 lines
429 B
Bash
Executable File
26 lines
429 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
patch -p1 < python3-always-pip.patch
|
|
|
|
# Remove util-linux dependency.
|
|
cat >> Modules/Setup <<EOF
|
|
*disabled*
|
|
_uuid
|
|
EOF
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-shared \
|
|
--with-system-expat \
|
|
--with-system-ffi \
|
|
--with-ensurepip=yes
|
|
|
|
make
|
|
make DESTDIR="$1" install
|
|
|
|
ln -s python3 "$1/usr/bin/python"
|
|
ln -s pip3 "$1/usr/bin/pip"
|
|
|
|
# Make static library writable.
|
|
chmod u+w "$1/usr/lib/libpython"*
|