Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install "packaging>=23,<25"
python -m pip install pyinstaller
python -m pip install Pillow

Expand Down
5 changes: 4 additions & 1 deletion packaging/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def build(*, clean: bool, runtime_dir: Path | None = None, gpu: bool = False) ->
),
str(PACKAGING_ROOT / "runtime_launcher.py"),
]
subprocess.run(command, cwd=ROOT, check=True)
# Run PyInstaller outside the repository root. The application has a
# local ``packaging`` package, which would otherwise shadow the
# third-party ``packaging`` dependency imported by PyInstaller.
subprocess.run(command, cwd=work_dir, check=True)

bundle = _require_path(dist_dir / APP_NAME, directory=True)
if runtime_dir is None:
Expand Down
Loading