Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 02 Aug 2022 04:08:54
Message-Id: 1659413067.7e2791da8da69126ad759103967ae99d16b093ec.mgorny@gentoo
1 commit: 7e2791da8da69126ad759103967ae99d16b093ec
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 18 06:15:14 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 04:04:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e2791da
7
8 distutils-r1.eclass: Update pyproject.toml advice for PEP517 mode
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/distutils-r1.eclass | 8 ++++----
13 1 file changed, 4 insertions(+), 4 deletions(-)
14
15 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
16 index e64eedec5fd3..9909ba70178c 100644
17 --- a/eclass/distutils-r1.eclass
18 +++ b/eclass/distutils-r1.eclass
19 @@ -884,10 +884,10 @@ _distutils-r1_handle_pyproject_toml() {
20
21 if [[ ! -f setup.py && -f pyproject.toml ]]; then
22 if [[ ${DISTUTILS_USE_SETUPTOOLS} != pyproject.toml ]]; then
23 - eerror "No setup.py found but pyproject.toml is present. In order to enable"
24 - eerror "pyproject.toml support in distutils-r1, set:"
25 - eerror " DISTUTILS_USE_SETUPTOOLS=pyproject.toml"
26 - die "No setup.py found and DISTUTILS_USE_SETUPTOOLS!=pyproject.toml"
27 + eerror "No setup.py found but pyproject.toml is present. Please migrate"
28 + eerror "the package to use DISTUTILS_USE_PEP517. See:"
29 + eerror " https://projects.gentoo.org/python/guide/distutils.html"
30 + die "No setup.py found and PEP517 mode not enabled"
31 fi
32 fi
33 }