From ba8e3a2c506c66d92a4c2fccecdfcf26e738325a Mon Sep 17 00:00:00 2001 From: jrmccluskey Date: Mon, 26 Oct 2026 20:00:57 +0000 Subject: [PATCH 1/3] Set firm upper bound on Python 3.11 numpy --- sdks/python/pyproject.toml | 3 ++- sdks/python/setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 9a00fe03ea07..467a3ae1d78d 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -31,7 +31,8 @@ requires = [ # Avoid https://github.com/pypa/virtualenv/issues/2006 "distlib==0.4.4", # Numpy headers - "numpy>=1.23.2,<2.6.0", # Update setup.py as well. + "numpy>=1.23.2,<2.6.0"; python_version >= '3.12', # Update setup.py as well. + "numpy>=1.23.2,<2.5.0"; python_version < '3.12', # having cython here will create wheels that are platform dependent. "cython>=3.2.6,<4", ## deps for generating external transform wrappers: diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 8236944aea19..98d5b631f13b 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -446,7 +446,8 @@ def get_portability_package_data(): # Use a strict upper bound. # Increment the lower bound when the minimum Python version is # updated. - 'numpy>=1.23.2,<2.6.0', # Update pyproject.toml as well. + 'numpy>=1.23.2,<2.6.0; python_version >= "3.12"', # Update pyproject.toml as well. + 'numpy>=1.23.2,<2.5.0; python_version < "3.12"', 'objsize>=0.6.1,<0.8.0', 'packaging>=22.0', 'pillow>=12.1.1,<14', From 159f9ba7d1db0221782394f743e8fdd0045f256d Mon Sep 17 00:00:00 2001 From: jrmccluskey Date: Mon, 26 Oct 2026 20:02:35 +0000 Subject: [PATCH 2/3] fix quotes in pyproject.toml --- sdks/python/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 467a3ae1d78d..f15cc2a27a31 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -31,8 +31,8 @@ requires = [ # Avoid https://github.com/pypa/virtualenv/issues/2006 "distlib==0.4.4", # Numpy headers - "numpy>=1.23.2,<2.6.0"; python_version >= '3.12', # Update setup.py as well. - "numpy>=1.23.2,<2.5.0"; python_version < '3.12', + "numpy>=1.23.2,<2.6.0"; python_version >= '3.12'", # Update setup.py as well. + "numpy>=1.23.2,<2.5.0"; python_version < '3.12'", # having cython here will create wheels that are platform dependent. "cython>=3.2.6,<4", ## deps for generating external transform wrappers: From ec48100c7e3edc31865c3ff7d545742278928343 Mon Sep 17 00:00:00 2001 From: jrmccluskey Date: Mon, 26 Oct 2026 20:03:16 +0000 Subject: [PATCH 3/3] fix quotes further --- sdks/python/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index f15cc2a27a31..b3fe73f4697d 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -31,8 +31,8 @@ requires = [ # Avoid https://github.com/pypa/virtualenv/issues/2006 "distlib==0.4.4", # Numpy headers - "numpy>=1.23.2,<2.6.0"; python_version >= '3.12'", # Update setup.py as well. - "numpy>=1.23.2,<2.5.0"; python_version < '3.12'", + "numpy>=1.23.2,<2.6.0; python_version >= '3.12'", # Update setup.py as well. + "numpy>=1.23.2,<2.5.0; python_version < '3.12'", # having cython here will create wheels that are platform dependent. "cython>=3.2.6,<4", ## deps for generating external transform wrappers: