Skip to content

Commit

Permalink
Python: clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
stefansaraev authored and sraue committed Jan 3, 2015
1 parent d4072be commit 6bc6985
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/lang/Python/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,17 @@ post_makeinstall_target() {
rm -rf $INSTALL/usr/lib/python*/$dir
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
rm -rf `find $INSTALL/usr/lib/python*/ -name "*.py"`

# TODO remove ?
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 "let it fail here, to be sure '_socket.so' will be installed. A rebuild of Python fixes"
echo "the issue in most cases"
exit 1
fi

# k0p
rm -rf $INSTALL/usr/lib/python*/config
rm -rf $INSTALL/usr/bin/2to3
rm -rf $INSTALL/usr/bin/idle
rm -rf $INSTALL/usr/bin/pydoc
Expand Down

0 comments on commit 6bc6985

Please sign in to comment.