From bba19f449f47a44af55fa2d66e8c1d8eeb4c782d Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Mon, 27 Oct 2025 19:12:59 -0400 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3459f1c..dff1370 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -232,10 +232,22 @@ jobs: REM Add MSYS2 to PATH so Pillow can find the libraries set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH% + + REM Set up build environment for Pillow + set CFLAGS=-IC:\msys64\mingw64\include + set LDFLAGS=-LC:\msys64\mingw64\lib set PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig set INCLUDE=C:\msys64\mingw64\include;%INCLUDE% set LIB=C:\msys64\mingw64\lib;%LIB% + REM Explicitly set library paths for Pillow's setup.py + set ZLIB_ROOT=C:\msys64\mingw64 + set JPEG_ROOT=C:\msys64\mingw64 + set TIFF_ROOT=C:\msys64\mingw64 + set FREETYPE_ROOT=C:\msys64\mingw64 + set LCMS_ROOT=C:\msys64\mingw64 + set WEBP_ROOT=C:\msys64\mingw64 + REM Install Pillow from source into system Python uv pip install --system --no-binary pillow pillow