From d2d9df3121d228797d0b3bccfd614849b637c0fe Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 8 Feb 2022 23:45:33 -0500 Subject: [PATCH] setup.py: better requirements The first version of setuptools to properly support pyproject.toml was 42 (40-41 were buggy). It is also necessary to specify `build-backend = "setuptools.build_meta"`, otherwise you get the (horrible) default `build-backend = "setuptools.build_meta:__legacy__"`. --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d1e6ae6e5..8fe2f47af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta"