Skip to content

Commit

Permalink
Fix for PyInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Oct 4, 2023
1 parent 40a2ee9 commit b3d33cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -42,10 +42,10 @@ pyinstaller --clean --noconfirm --log-level DEBUG --debug noarchive --onedir --n

deactivate # exit python's venv

rsync -avR --remove-source-files dist/trik/./*.so* "$PWD/../data/lib/"
rsync -avR --remove-source-files dist/trik/_internal/./*.so* "$PWD/../data/lib/"
# Remove before copying other files
rm dist/trik/trik
rsync -avRm --ignore-missing-args --delete --delete-after dist/trik/./* "$PWD/../data/lib/python-runtime"
rsync -avRm --ignore-missing-args --delete --delete-after dist/trik/_internal/./* "$PWD/../data/lib/python-runtime"

#PythonQt requires for dlopen'ing
pushd "$PWD/../data/lib" && for f in libpython3.*.so.* ; do ln -svf "$f" "$(echo "$f" | cut -d . -f 1-3)" ; done ; popd
Expand Up @@ -44,10 +44,10 @@ pyinstaller --clean --noconfirm --log-level DEBUG --debug noarchive --onedir --n

deactivate # exit python's venv

rsync -avR --remove-source-files dist/trik/./{*.dylib,Python} "$BUNDLE_CONTENTS/Lib"
rsync -avR --remove-source-files dist/trik/_internal/./{*.dylib,Python} "$BUNDLE_CONTENTS/Lib"
# Remove before copying other files
rm dist/trik/trik
rsync -avRm --delete --delete-after dist/trik/./* "$BUNDLE_CONTENTS/Lib/python-runtime"
rsync -avRm --delete --delete-after dist/trik/_internal/./* "$BUNDLE_CONTENTS/Lib/python-runtime"

#Add Python runtime libraries
PYTHON_LIBNAME=$("python3.${TRIK_PYTHON3_VERSION_MINOR}-config" --prefix)/Python
Expand Down

0 comments on commit b3d33cb

Please sign in to comment.