From 38a5a640c099b1a2e8e6b5c2034998dd8dbc3be4 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 22 Aug 2024 19:47:09 +0100 Subject: [PATCH] pyproject.toml: pin setuptools < 72.2 to avoid issue with PyPy >=3.8 only with setuptools >= 72.2 we get the "TypeError: 'NoneType' object is not subscriptable (key slice(None, None, None))" error when building the extension module on PyPy 3.8+ on Linux and MacOS. fixup --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bbfde70..4281c09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,8 @@ [build-system] requires = [ - "setuptools >= 36.4", + # pinning setuptools until an issue with pypy3 gets fixed upstream: + # https://github.com/pypa/distutils/issues/283 + "setuptools >= 36.4, < 72.2", "wheel", "setuptools_scm >= 2.1", "cython >= 0.28.1",