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@d69471b31d
This commit is contained in:
Axel Gembe 2019-05-15 19:03:18 +02:00 committed by SomberNight
parent c3b92aa13a
commit 5afda62ee3
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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