Skip to content

Commit

Permalink
Setup: Fix PyInstaller's Failed to import module
Browse files Browse the repository at this point in the history
PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_importlib_metadata required by hook for module /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/hooks/hook-importlib_metadata.py.
  • Loading branch information
amotl committed Jul 18, 2024
1 parent def4890 commit 731e007
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ jobs:
cache-dependency-path: 'pyproject.toml'

- name: Set up project
run: pip install --use-pep517 --prefer-binary --editable='.[cfr,release-cfr]'
run: |
# `setuptools 64` adds support for editable install hooks (PEP 660).
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
# `setuptools 71` significantly re-vendors setuptools packages, causing hiccups on Python 3.8.
# https://github.com/pypa/setuptools/pull/4457
pip install "setuptools>=64,<71" --upgrade
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable='.[cfr,release-cfr]'
- name: Build application bundle
run: poe build-cfr
Expand Down

0 comments on commit 731e007

Please sign in to comment.