From 68a69d9501b52a37f83e29f7173110406dc4b994 Mon Sep 17 00:00:00 2001 From: rejbasket <39080670+rejbasket@users.noreply.github.com> Date: Thu, 12 Jun 2025 19:31:25 +0200 Subject: numpy import fix (#3796) * removed strip flag from linux pyinstaller that caused numpy import issue * test numpy binary with strip flag * added clean flag to pyinstaller args * done testing removed strip flag from pyinstaller args --------- Co-authored-by: rejbasket --- bin/build-python | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/build-python b/bin/build-python index 5a93f610..d976dec4 100755 --- a/bin/build-python +++ b/bin/build-python @@ -48,13 +48,12 @@ elif [ "$BUILD" = "windows" ]; then pyinstaller_args+="--version-file installer_scripts/file_version_info.txt " fi -# Finally we build for each os with the finalized settings +# Finally we build for windows and macOS with the finalized settings if [ "$BUILD" = "osx" -o "$BUILD" = "windows" ]; then pyinstaller_args+="--windowed " - python -m PyInstaller $pyinstaller_args inkstitch.py; -else - python -m PyInstaller $pyinstaller_args --strip inkstitch.py; fi +# Run command to build the inkstich program +python -m PyInstaller $pyinstaller_args inkstitch.py # pyinstaller put a whole mess of libraries under dist/inkstitch. We'd like # to put some more user-accessible stuff like examples and palettes in -- cgit v1.2.3