Skip to content

Commit

Permalink
Add numpy library to Linux and macOS installers
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Jul 20, 2023
1 parent 06af258 commit f573970
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ rsync -a "$BIN_DIR"/{system.js,TRIK.py,2D-model,checkapp} "$PWD/..

[ -r venv/bin/activate ] || "python3.${TRIK_PYTHON3_VERSION_MINOR}" -m venv venv
. venv/bin/activate
python3 -m pip install pyinstaller
python3 -m pip install -U pip
python3 -m pip install pyinstaller numpy

#PyInstaller provides all required modules
#So we need to handle this garbage of files later (below) with proper rsync
Expand All @@ -33,8 +34,11 @@ pyinstaller --clean --noconfirm --log-level DEBUG --debug noarchive --onedir --n
--hidden-import=time \
--hidden-import=os \
--hidden-import=types \
--hidden-import=numpy \
"$BIN_DIR"/TRIK.py

deactivate # exit python's venv

rsync -avR --remove-source-files dist/trik/./*.so* "$PWD/../data/lib/"
# Remove before copying other files
rm dist/trik/trik
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ copy_qt_lib QtSerialPort

[ -r venv/bin/activate ] || python3."${TRIK_PYTHON3_VERSION_MINOR}" -m venv venv
. venv/bin/activate
python3 -m pip install pyinstaller
python3 -m pip install -U pip
python3 -m pip install pyinstaller numpy

#PyInstaller provides all required modules
#So we need to handle this garbage of files later (below) with proper rsync
Expand All @@ -35,8 +36,11 @@ pyinstaller --clean --noconfirm --log-level DEBUG --debug noarchive --onedir --n
--hidden-import=time \
--hidden-import=os \
--hidden-import=types \
--hidden-import=numpy \
"$BIN_DIR"/TRIK.py

deactivate # exit python's venv

rsync -avR --remove-source-files dist/trik/./{*.dylib,Python} "$BUNDLE_CONTENTS/Lib"
# Remove before copying other files
rm dist/trik/trik
Expand Down

0 comments on commit f573970

Please sign in to comment.