From 3d7cb935ff6a262c58018408f3c19cf7e5221472 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 2 Sep 2019 19:21:53 +0200 Subject: [PATCH] appimage: don't rm jsonschema-*.dist-info as pkg needs it --- contrib/build-linux/appimage/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh index e8c2ba74f..e9614128c 100755 --- a/contrib/build-linux/appimage/build.sh +++ b/contrib/build-linux/appimage/build.sh @@ -221,8 +221,11 @@ 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 rm "$APPDIR"/usr/lib/libsecp256k1.a +# note that jsonschema-*.dist-info is needed by that package as it uses 'pkg_resources.get_distribution' +for f in "$PYDIR"/site-packages/jsonschema-*.dist-info; do mv "$f" "$(echo "$f" | sed s/\.dist-info/\.dist-info2/)"; done rm -rf "$PYDIR"/site-packages/*.dist-info/ rm -rf "$PYDIR"/site-packages/*.egg-info/ +for f in "$PYDIR"/site-packages/jsonschema-*.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' {} +