From 854d7df725eebf55314a07b5501d850a8a39fc76 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 18 Oct 2024 16:34:48 +0200 Subject: [PATCH] pin setuptools<72.2 on pypy to workaround build error coming from distutils see https://github.com/pypa/distutils/issues/283 --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 84fe22f..6651f00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,8 @@ [build-system] requires = [ - "setuptools", + # pin setuptools on pypy to workaround this bug: https://github.com/pypa/distutils/issues/283 + "setuptools<72.2.0; platform_python_implementation == 'PyPy'", + "setuptools; platform_python_implementation != 'PyPy'", "wheel", "setuptools_scm", "cython >= 0.28.4",