mirror of
https://codeberg.org/kiss-community/repo
synced 2025-03-25 23:35:03 -06:00
python2: Reduce size to 30MB
This commit is contained in:
parent
878a5ff1d5
commit
0c0d9f287d
@ -7,8 +7,20 @@
|
|||||||
make
|
make
|
||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
|
||||||
rm "$1/usr/bin/2to3"
|
|
||||||
rm "$1/usr/bin/python"
|
|
||||||
|
|
||||||
# Make static library writable.
|
# Make static library writable.
|
||||||
chmod u+w "$1/usr/lib/libpython"*.a
|
chmod u+w "$1/usr/lib/libpython"*.a
|
||||||
|
|
||||||
|
# Let's make some kind of effort to reduce the overall
|
||||||
|
# size of Python by removing a bunch of rarely used and
|
||||||
|
# otherwise useless components.
|
||||||
|
#
|
||||||
|
# This can't be done via ./configure as the build system
|
||||||
|
# doesn't give you this much control over the process.
|
||||||
|
{
|
||||||
|
cd "$1/usr/lib/python"*
|
||||||
|
rm -rf test ./*/test ./*/tests
|
||||||
|
rm -rf lib2to3 pydoc* idlelib turtle* ensurepip lib-tk config
|
||||||
|
|
||||||
|
cd "$1/usr/bin"
|
||||||
|
rm -f 2to3* pydoc* idle* python
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user