diff options
| -rwxr-xr-x | bin/build-python | 10 |
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 |
