Skip to content

Commit 1a897e4

Browse files
fix: python on windows
`install-qt-action` uses `setup-python`, which in turn influences which Python version is chosen by CMake. We need to have the packages installed only after this is done.
1 parent a383734 commit 1a897e4

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/win_cpn-64.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,11 @@ jobs:
5151
run: |
5252
pacman -S --noconfirm mingw-w64-x86_64-cmake \
5353
mingw-w64-x86_64-ninja \
54-
mingw-w64-x86_64-python-pip \
55-
mingw-w64-x86_64-python-pillow \
56-
mingw-w64-x86_64-python-lz4 \
57-
mingw-w64-x86_64-libjpeg-turbo \
5854
mingw-w64-x86_64-zlib \
59-
mingw-w64-x86_64-libtiff \
60-
mingw-w64-x86_64-freetype \
61-
mingw-w64-x86_64-lcms2 \
62-
mingw-w64-x86_64-libwebp \
63-
mingw-w64-x86_64-openjpeg2 \
64-
mingw-w64-x86_64-libimagequant \
65-
mingw-w64-x86_64-libraqm \
6655
mingw-w64-x86_64-SDL2 \
67-
mingw-w64-x86_64-clang \
6856
mingw-w64-x86_64-nsis \
6957
mingw-w64-x86_64-dfu-util \
7058
mingw-w64-x86_64-openssl
71-
python -m pip install --break-system-packages clang jinja2
7259
7360
- name: Check out the repo
7461
uses: actions/checkout@v4
@@ -85,6 +72,11 @@ jobs:
8572
version: ${{ env.QT_VERSION }}
8673
arch: ${{ env.MINGW_VERSION }}
8774

75+
- name: Install Python Dependencies
76+
run: |
77+
echo $PATH
78+
$Python3_ROOT_DIR/python3.exe -m pip install jinja2
79+
8880
- name: Build
8981
working-directory: ${{github.workspace}}
9082
env:

0 commit comments

Comments
 (0)