Browse Source

build appimage: rm importlib-metadata workaround

The importlib-metadata pkg is no longer needed apparently (since we bumped the min python to 3.8).
patch-4
SomberNight 3 years ago
parent
commit
5e2cee6a31
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      contrib/build-linux/appimage/make_appimage.sh

6
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' {} +

Loading…
Cancel
Save