Update python-app.yml

This commit is contained in:
Anthony Samms
2025-10-27 19:04:18 -04:00
parent e47597bec4
commit 12ddb1e264

View File

@@ -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