mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Revert "Python: clean up"
This reverts commit 6bc6985b3e8301221ab7d7abc7e9c6d198e48592.
This commit is contained in:
parent
a87c08a953
commit
00986f0c11
@ -126,9 +126,15 @@ post_makeinstall_target() {
|
|||||||
rm -rf $INSTALL/usr/lib/python*/$dir
|
rm -rf $INSTALL/usr/lib/python*/$dir
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# config/Makefile / pyconfig.h / sysconfig module nonsense at runtime
|
||||||
|
rm -rf $INSTALL/usr/lib/python*/config
|
||||||
|
rm -rf $INSTALL/usr/lib/python*/*sysconfig*.pyo
|
||||||
|
# TODO: fix _syscondigdata.py for cross builds
|
||||||
|
|
||||||
python -Wi -t -B ../Lib/compileall.py $INSTALL/usr/lib/python*/ -f
|
python -Wi -t -B ../Lib/compileall.py $INSTALL/usr/lib/python*/ -f
|
||||||
rm -rf `find $INSTALL/usr/lib/python*/ -name "*.py"`
|
rm -rf `find $INSTALL/usr/lib/python*/ -name "*.py"`
|
||||||
|
|
||||||
|
# TODO remove ?
|
||||||
if [ ! -f $INSTALL/usr/lib/python*/lib-dynload/_socket.so ]; then
|
if [ ! -f $INSTALL/usr/lib/python*/lib-dynload/_socket.so ]; then
|
||||||
echo "sometimes Python dont build '_socket.so' for some reasons and continues without failing,"
|
echo "sometimes Python dont build '_socket.so' for some reasons and continues without failing,"
|
||||||
echo "let it fail here, to be sure '_socket.so' will be installed. A rebuild of Python fixes"
|
echo "let it fail here, to be sure '_socket.so' will be installed. A rebuild of Python fixes"
|
||||||
@ -136,7 +142,7 @@ post_makeinstall_target() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $INSTALL/usr/lib/python*/config
|
# k0p
|
||||||
rm -rf $INSTALL/usr/bin/2to3
|
rm -rf $INSTALL/usr/bin/2to3
|
||||||
rm -rf $INSTALL/usr/bin/idle
|
rm -rf $INSTALL/usr/bin/idle
|
||||||
rm -rf $INSTALL/usr/bin/pydoc
|
rm -rf $INSTALL/usr/bin/pydoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user