diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c84a91b..c9790f1 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -226,22 +226,23 @@ jobs: - name: Build Pillow from source (Windows) if: runner.os == 'Windows' - shell: msys2 {0} + shell: cmd run: | - echo "=== Building Pillow from source ===" + echo === Building Pillow from source === - # Set up environment variables for the build - export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:$PKG_CONFIG_PATH" - export INCLUDE="/mingw64/include:$INCLUDE" - export LIB="/mingw64/lib:$LIB" + REM Add MSYS2 to PATH so Pillow can find the libraries + set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH% + set PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig + set INCLUDE=C:\msys64\mingw64\include;%INCLUDE% + set LIB=C:\msys64\mingw64\lib;%LIB% - # Remove any existing Pillow installation - uv pip uninstall -y pillow pillow-simd || true + REM Remove any existing Pillow installation + uv pip uninstall -y pillow pillow-simd - # Install build dependencies - uv pip install --no-binary :all: --no-build-isolation pillow + REM Install Pillow from source + uv pip install --no-binary pillow --no-build-isolation pillow - echo "=== Pillow build completed ===" + echo === Pillow build completed === uv pip show pillow - name: Install Dependencies