aboutsummaryrefslogtreecommitdiff
path: root/extra/python/build
blob: fd13febba807bb4e4645e161e1c98f7435fb26c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

for patch in *.patch; do
    patch -p1 < "$patch"
done

./configure \
    --prefix=/usr \
    --enable-shared \
    --enable-static \
    --with-system-expat \
    --with-system-ffi \
    --with-ssl-default-suites='TLSv1.3:TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE' \
    --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 -v u+w "$1/usr/lib/libpython"*