Fix scipy for Linux (#1685)

Authored-by: @lexelby
pull/1686/head
Kaalleen 2022-06-10 16:32:16 +02:00 zatwierdzone przez GitHub
rodzic 6922f8ff7e
commit 38c47a49e5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -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