From df8e4074998afe15593bead59674ebdad9d59676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 22 Aug 2023 05:50:07 +0200 Subject: [PATCH 1/2] Build: Use non-legacy setuptools backend Use the modern `setuptools.build_meta` backend rather than the legacy backend that is implied by the lack of `build-backend`. This is documented in PEP 517: > If the `pyproject.toml` file is absent, or the `build-backend` key is > missing, the source tree is not using this specification, and tools > should revert to the legacy behaviour of running `setup.py` (either > directly, or by implicitly invoking > the `setuptools.build_meta:__legacy__` backend). https://peps.python.org/pep-0517/#source-trees --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 7d4bce6e..88a7a572 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [build-system] requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" [project] name = "pygccxml" From 97498ae39322fd228d10d5e099cbe11f97e9f384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 22 Aug 2023 05:54:54 +0200 Subject: [PATCH 2/2] Build: Remove redundant wheel dep from pyproject.toml Remove the redundant `wheel` dependency, as it is added by the backend automatically. Listing it explicitly in the documentation was a historical mistake and has been fixed since, see: https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88a7a572..4e0b80ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" [project]