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) - name: Build Pillow from source (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
shell: msys2 {0} shell: cmd
run: | run: |
echo "=== Building Pillow from source ===" echo === Building Pillow from source ===
# Set up environment variables for the build REM Add MSYS2 to PATH so Pillow can find the libraries
export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:$PKG_CONFIG_PATH" set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
export INCLUDE="/mingw64/include:$INCLUDE" set PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig
export LIB="/mingw64/lib:$LIB" set INCLUDE=C:\msys64\mingw64\include;%INCLUDE%
set LIB=C:\msys64\mingw64\lib;%LIB%
# Remove any existing Pillow installation REM Remove any existing Pillow installation
uv pip uninstall -y pillow pillow-simd || true uv pip uninstall -y pillow pillow-simd
# Install build dependencies REM Install Pillow from source
uv pip install --no-binary :all: --no-build-isolation pillow uv pip install --no-binary pillow --no-build-isolation pillow
echo "=== Pillow build completed ===" echo === Pillow build completed ===
uv pip show pillow uv pip show pillow
- name: Install Dependencies - name: Install Dependencies