openssl: bump to 3.0.2 + libretls 3.5.0
[kiss-trunc88.git] / python2 / build
blobae85513ffb69655e6b378864256009d43e6428e1
1 #!/bin/sh -e
3 patch -p1 < python2-always-pip.patch
5 ./configure \
6 --prefix=/usr \
7 --with-ensurepip=yes
9 make
10 make DESTDIR="$1" install
12 # Make static library writable.
13 chmod u+w "$1/usr/lib/libpython"*.a
15 # Let's make some kind of effort to reduce the overall
16 # size of Python by removing a bunch of rarely used and
17 # otherwise useless components.
19 # This can't be done via ./configure as the build system
20 # doesn't give you this much control over the process.
22 cd "$1/usr/lib/python"*
23 rm -rf test ./*/test ./*/tests
24 rm -rf lib2to3 pydoc* idlelib turtle* ensurepip lib-tk config
26 cd "$1/usr/bin"
27 rm -f 2to3* pydoc* idle* python pip