From 5e2cee6a31660ca9b89ae495cc731feeeed8df21 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 22 Feb 2022 17:14:23 +0100 Subject: [PATCH] build appimage: rm importlib-metadata workaround The importlib-metadata pkg is no longer needed apparently (since we bumped the min python to 3.8). --- contrib/build-linux/appimage/make_appimage.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/build-linux/appimage/make_appimage.sh b/contrib/build-linux/appimage/make_appimage.sh index 4e8d5cc9b..69a764f0d 100755 --- a/contrib/build-linux/appimage/make_appimage.sh +++ b/contrib/build-linux/appimage/make_appimage.sh @@ -215,12 +215,10 @@ rm -rf "$PYDIR"/site-packages/PyQt5/Qt.so # these are deleted as they were not deterministic; and are not needed anyway find "$APPDIR" -path '*/__pycache__*' -delete -# note that *.dist-info is needed by certain packages. -# e.g. see https://gitlab.com/python-devs/importlib_metadata/issues/71 -for f in "$PYDIR"/site-packages/importlib_metadata-*.dist-info; do mv "$f" "$(echo "$f" | sed s/\.dist-info/\.dist-info2/)"; done +# although note that *.dist-info might be needed by certain packages... +# e.g. importlib-metadata, see https://gitlab.com/python-devs/importlib_metadata/issues/71 rm -rf "$PYDIR"/site-packages/*.dist-info/ rm -rf "$PYDIR"/site-packages/*.egg-info/ -for f in "$PYDIR"/site-packages/importlib_metadata-*.dist-info2; do mv "$f" "$(echo "$f" | sed s/\.dist-info2/\.dist-info/)"; done find -exec touch -h -d '2000-11-11T11:11:11+00:00' {} +