From b533002a434b63233be36513757b7fa9b552d3a9 Mon Sep 17 00:00:00 2001 From: Chaitany Patel Date: Wed, 4 Nov 2026 15:02:40 +0530 Subject: [PATCH] fix: Pin build dependencies of source builds to the CI lock sqlglotc has no Python 3.10 wheels on PyPI, so on 3.10 uv builds sqlglotc==30.21.0 from source. Its build pulls the newest unpinned sqlglot, whose Schema class is no longer a mypyc trait, and mypyc fails with "Multiple inheritance is not supported (except for traits)". Pass the CI lock as --build-constraints so source builds use the locked versions (sqlglot==30.21.0) instead of the newest release. Signed-off-by: Chaitany Patel --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34ce655f66d..437e076a011 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,11 @@ install-python-dependencies-ci: ## Install Python CI dependencies using uv pip s # Must match the --torch-backend used to compile the CI lock, otherwise the # recorded CPU-wheel hashes (from download.pytorch.org) fail to verify. # The lock is universal, so one command serves both Linux and macOS. - uv pip sync --torch-backend cpu sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt + # --build-constraints pins build-time deps of source builds to the lock too + # (e.g. sqlglotc on Python 3.10 has no wheel and must compile the locked sqlglot). + uv pip sync --torch-backend cpu \ + --build-constraints sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt \ + sdk/python/requirements/py$(PYTHON_VERSION)-ci-requirements.txt uv pip install --no-deps -e . # Used in github actions/ci