From 5afda62ee32b1a5d37ee4033b9f7ed8e8951e50c Mon Sep 17 00:00:00 2001 From: Axel Gembe Date: Wed, 15 May 2019 19:03:18 +0200 Subject: [PATCH] AppImage: Remove Qt.so to prevent importing from PyQt5.Qt Importing from PyQt5.Qt is an unnecessary fallback that loads every PyQt5 module. ----- taken from Electron-Cash/Electron-Cash@d69471b31d1f25a703588f48ee0cc5afdf1f1f2f --- contrib/build-linux/appimage/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh index 3e9baa12f..5006b3173 100755 --- a/contrib/build-linux/appimage/build.sh +++ b/contrib/build-linux/appimage/build.sh @@ -187,6 +187,8 @@ rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Quick* rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Location* rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Test* rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Xml* +rm -rf "$APPDIR"/usr/lib/python3.6/site-packages/PyQt5/Qt.so + # these are deleted as they were not deterministic; and are not needed anyway find "$APPDIR" -path '*/__pycache__*' -delete