tappimage: don't rm jsonschema-*.dist-info as pkg needs it - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3d7cb935ff6a262c58018408f3c19cf7e5221472 DIR parent 7f870f5e096cbc3296a091cd3e62c2733515f330 HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 2 Sep 2019 19:21:53 +0200 appimage: don't rm jsonschema-*.dist-info as pkg needs it Diffstat: M contrib/build-linux/appimage/build… | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh t@@ -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' {} +