summaryrefslogtreecommitdiff
path: root/bin/build-python
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-06-10 16:32:16 +0200
committerGitHub <noreply@github.com>2022-06-10 16:32:16 +0200
commit38c47a49e5d2abda83bf3221756649137a58eb9b (patch)
tree4189d5cf3e3b130574205ed57e0cd13b7fc0925e /bin/build-python
parent6922f8ff7e12638048800b9525fa8c3077384c2d (diff)
Fix scipy for Linux (#1685)
Authored-by: @lexelby
Diffstat (limited to 'bin/build-python')
-rwxr-xr-xbin/build-python10
1 files changed, 9 insertions, 1 deletions
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