From 38c47a49e5d2abda83bf3221756649137a58eb9b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 10 Jun 2022 16:32:16 +0200 Subject: Fix scipy for Linux (#1685) Authored-by: @lexelby --- bin/build-python | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/build-python b/bin/build-python index 195248c3..14f77dae 100755 --- a/bin/build-python +++ b/bin/build-python @@ -66,9 +66,17 @@ if [ "$BUILD" = "windows" ]; then pyinstaller_args+="--i electron/build/icons/win/inkstitch.ico " pyinstaller_args+="--version-file installer_scripts/file_version_info.txt " python -m PyInstaller $pyinstaller_args inkstitch.py -else +elif [ "$BUILD" = "linux" ]; then # without the LD_LIBRARY_PATH, it seems that pyinstaller can't find all of # wxpython's shared libraries + LD_LIBRARY_PATH="${site_packages}/wx" python -m PyInstaller $pyinstaller_args inkstitch.py; + + # We've found that stripping the _fblas library in scipy/linalg causes a bizarre + # error: + # + # ELF load command address/offset not properly aligned + find dist/inkstitch -type f | grep -E '.so($|\.)' | grep -v _fblas | xargs strip +else LD_LIBRARY_PATH="${site_packages}/wx" python -m PyInstaller $pyinstaller_args --strip inkstitch.py; fi -- cgit v1.2.3