From 218a392d1810a6c9fa974441fb6da13d881082ab Mon Sep 17 00:00:00 2001 From: Bryan Kaplan <#@bryankaplan.com> Date: Thu, 4 Jul 2024 13:10:56 -0600 Subject: [PATCH] Support python 3.12 Currently, opencv-python fails to build under python 3.12. This patch fixes that problem by permitting the use of any setuptools>=59.2.0, rather than mandating that specific version. This patch fixes #988. See discussion there for details. I have tested by successfully installing opencv-python. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 71de7f9b..63c7210b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,5 +9,5 @@ requires = [ "numpy>=2.0.0; python_version>='3.9'", "pip", "scikit-build>=0.14.0", - "setuptools==59.2.0", + "setuptools>=59.2.0", ]