From e022730f1533124ed3a05a2747506a85e80225a4 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Mon, 27 Oct 2025 19:30:41 -0400 Subject: [PATCH] I hate this --- .github/workflows/python-app.yml | 39 -------------------------------- pyproject.toml | 3 +++ 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 17b49f4..dbefcc0 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -224,45 +224,6 @@ jobs: - name: Setup Python run: uv python install - - name: Build Pillow from source (Windows) - if: runner.os == 'Windows' - shell: msys2 {0} - run: | - echo "=== Building Pillow from source ===" - - # Find uv in Windows PATH - UV_PATH=$(where.exe uv.exe | head -n1) - echo "UV found at: $UV_PATH" - - # Get the Python directory from uv - PYTHON_DIR=$("$UV_PATH" python dir 2>/dev/null || echo "") - - if [ -z "$PYTHON_DIR" ]; then - echo "Trying alternative method to find Python..." - # Alternative: check common uv Python locations - PYTHON_DIR=$(find /c/Users/*/AppData/Roaming/uv/python -name "cpython-*-windows-*" -type d 2>/dev/null | head -n1) - fi - - PYTHON_EXE="$PYTHON_DIR/python.exe" - echo "Python directory: $PYTHON_DIR" - echo "Python executable: $PYTHON_EXE" - - if [ ! -f "$PYTHON_EXE" ]; then - echo "Error: Python executable not found at $PYTHON_EXE" - exit 1 - fi - - # Set up build environment with MSYS2 paths - export PKG_CONFIG_PATH="/mingw64/lib/pkgconfig" - export CFLAGS="-I/mingw64/include" - export LDFLAGS="-L/mingw64/lib" - - # Build Pillow using the Windows Python - "$PYTHON_EXE" -m pip install --no-binary pillow pillow - - echo "=== Pillow build completed ===" - "$PYTHON_EXE" -m pip show pillow - - name: Install Dependencies run: | uv sync diff --git a/pyproject.toml b/pyproject.toml index 5663779..be88a88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,9 @@ paths = ["."] [tool.uv] find-links = ["raylib-sdl"] +override-dependencies = [ + "pillow", +] [dependency-groups] dev = [