Skip to content

Commit 290ed56

Browse files
committed
Try another fix
1 parent 7bd35e7 commit 290ed56

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/build_binaries.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ jobs:
4040
key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}--${{ hashFiles('poetry.lock') }}
4141
path: .venv
4242

43+
- name: Bind Poetry to runner Python (Linux/macOS)
44+
if: matrix.os != 'windows-latest'
45+
shell: bash
46+
run: |
47+
if [ -x .venv/bin/python ]; then
48+
echo "Cached venv Python: $(.venv/bin/python --version)"
49+
fi
50+
echo "Runner Python: $(python --version)"
51+
poetry env use "$(command -v python)"
52+
53+
- name: Bind Poetry to runner Python (Windows)
54+
if: matrix.os == 'windows-latest'
55+
shell: pwsh
56+
run: |
57+
if (Test-Path .venv\Scripts\python.exe) { & .venv\Scripts\python.exe --version }
58+
python --version
59+
poetry env use (Get-Command python).Source
60+
4361
- name: Install Dependencies
4462
run: |
4563
poetry install --with dev

scripts/build-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
mkdir -p build
2222

2323
poetry install --with dev
24-
poetry run nuitka \
24+
poetry run python -m nuitka \
2525
./derpiwallpaper/__main__.py \
2626
--onefile \
2727
--enable-plugin=pyside6 \

scripts/build-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
mkdir -p build
2222

2323
poetry install --with dev
24-
poetry run nuitka \
24+
poetry run python -m nuitka \
2525
./derpiwallpaper/__main__.py \
2626
--onefile \
2727
--enable-plugin=pyside6 \

scripts/build-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if ($content -ne $version) {
2626
New-Item -ItemType Directory -Force -Path build | Out-Null
2727

2828
poetry install --with dev
29-
poetry run nuitka \
29+
poetry run python -m nuitka \
3030
.\derpiwallpaper\__main__.py \
3131
--msvc=latest \
3232
--onefile \

0 commit comments

Comments
 (0)