3 patch -p1 < python2-always-pip.patch
10 make DESTDIR="$1" install
12 # Make static library writable.
13 chmod u+w "$1/usr/lib/libpython"*.a
16 install -Dm755 LICENSE "$1/usr/share/LICENSES/python2.license"
18 # Let's make some kind of effort to reduce the overall
19 # size of Python by removing a bunch of rarely used and
20 # otherwise useless components.
22 # This can't be done via ./configure as the build system
23 # doesn't give you this much control over the process.
25 cd "$1/usr/lib/python"*
26 rm -rf test ./*/test ./*/tests
27 rm -rf lib2to3 pydoc* idlelib turtle* ensurepip lib-tk config
30 rm -f 2to3* pydoc* idle* python pip