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
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
27 rm -f 2to3
* pydoc
* idle
* python pip