Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 01/11] distutils-r1.eclass: Update pyproject.toml advice for PEP517 mode
Date: Fri, 29 Jul 2022 10:31:33
Message-Id: 20220729103103.1185162-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/11] distutils-r1.eclass: Support for gpep517-9+ --optimize + minor changes by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/distutils-r1.eclass | 8 ++++----
4 1 file changed, 4 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
7 index e64eedec5fd3..9909ba70178c 100644
8 --- a/eclass/distutils-r1.eclass
9 +++ b/eclass/distutils-r1.eclass
10 @@ -884,10 +884,10 @@ _distutils-r1_handle_pyproject_toml() {
11
12 if [[ ! -f setup.py && -f pyproject.toml ]]; then
13 if [[ ${DISTUTILS_USE_SETUPTOOLS} != pyproject.toml ]]; then
14 - eerror "No setup.py found but pyproject.toml is present. In order to enable"
15 - eerror "pyproject.toml support in distutils-r1, set:"
16 - eerror " DISTUTILS_USE_SETUPTOOLS=pyproject.toml"
17 - die "No setup.py found and DISTUTILS_USE_SETUPTOOLS!=pyproject.toml"
18 + eerror "No setup.py found but pyproject.toml is present. Please migrate"
19 + eerror "the package to use DISTUTILS_USE_PEP517. See:"
20 + eerror " https://projects.gentoo.org/python/guide/distutils.html"
21 + die "No setup.py found and PEP517 mode not enabled"
22 fi
23 fi
24 }
25 --
26 2.35.1