Python2/3: remove temp build directory post install

It's full of absolute paths that we don't want in the toolchain tar.
This commit is contained in:
MilhouseVH 2018-04-02 10:09:11 +01:00
parent 42f3a2f5a8
commit 2c3aa62af8
2 changed files with 10 additions and 0 deletions

View File

@ -88,6 +88,10 @@ makeinstall_host() {
install
}
post_makeinstall_host() {
rm -fr $PKG_BUILD/.$HOST_NAME/build/temp.*
}
pre_configure_target() {
export PYTHON_FOR_BUILD=$TOOLCHAIN/bin/python
}
@ -114,6 +118,8 @@ makeinstall_target() {
}
post_makeinstall_target() {
rm -fr $PKG_BUILD/.$TARGET_NAME/build/temp.*
for dir in bsddb idlelib lib-tk lib2to3 msilib pydoc_data test unittest; do
rm -rf $INSTALL/usr/lib/python*/$dir
done

View File

@ -114,10 +114,14 @@ post_makeinstall_host() {
rm -f $TOOLCHAIN/bin/pyvenv
rm -f $TOOLCHAIN/bin/pydoc*
rm -fr $PKG_BUILD/.$HOST_NAME/build/temp.*
cp $PKG_BUILD/Tools/scripts/reindent.py $TOOLCHAIN/lib/$PKG_PYTHON_VERSION
}
post_makeinstall_target() {
rm -fr $PKG_BUILD/.$TARGET_NAME/build/temp.*
PKG_INSTALL_PATH_LIB=$INSTALL/usr/lib/$PKG_PYTHON_VERSION
for dir in config compiler sysconfigdata lib-dynload/sysconfigdata lib2to3 test; do