From 6bd62322ff5d8853a47af6b2184c641abe2f62c7 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Mon, 25 Nov 2024 14:07:54 +0100 Subject: [PATCH] fix(build): Added missing setuptools versions pinning that break the PyPy builds --- README.rst | 2 ++ pyproject.toml | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/README.rst b/README.rst index 701e924..b834d6a 100644 --- a/README.rst +++ b/README.rst @@ -59,6 +59,8 @@ Changelog * Nothing yet ;) + * fix(build): Added missing setuptools versions pinning that break the PyPy builds (@flozz) + * **v1.3.2 / v1.3.2-1:** * fix(build): Fixed Windows build with recent setuptools versions (@flozz) diff --git a/pyproject.toml b/pyproject.toml index 0c4646d..4ae135d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,12 @@ +[build-system] +requires = [ + "setuptools", + # ↓ See: https://github.com/pypa/distutils/issues/283 + "setuptools<72; implementation_name=='pypy'", + # ↓ See https://github.com/wanadev/mozjpeg-lossless-optimization/issues/26 + "setuptools<74; platform_system=='Windows' and implementation_name=='pypy'", +] +build-backend = "setuptools.build_meta" [tool.black] line-length = 79 target-version = ['py39']