summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-07-18 08:15:14 +0200
committerMichał Górny <mgorny@gentoo.org>2022-08-02 06:04:27 +0200
commit7e2791da8da69126ad759103967ae99d16b093ec (patch)
tree77fabeca15febfde034aed266112e2ea316b7d4b
parentvirtualx.eclass: Do not disable sandbox (diff)
downloadgentoo-7e2791da8da69126ad759103967ae99d16b093ec.tar.gz
gentoo-7e2791da8da69126ad759103967ae99d16b093ec.tar.bz2
gentoo-7e2791da8da69126ad759103967ae99d16b093ec.zip
distutils-r1.eclass: Update pyproject.toml advice for PEP517 mode
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--eclass/distutils-r1.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e64eedec5fd3..9909ba70178c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -884,10 +884,10 @@ _distutils-r1_handle_pyproject_toml() {
if [[ ! -f setup.py && -f pyproject.toml ]]; then
if [[ ${DISTUTILS_USE_SETUPTOOLS} != pyproject.toml ]]; then
- eerror "No setup.py found but pyproject.toml is present. In order to enable"
- eerror "pyproject.toml support in distutils-r1, set:"
- eerror " DISTUTILS_USE_SETUPTOOLS=pyproject.toml"
- die "No setup.py found and DISTUTILS_USE_SETUPTOOLS!=pyproject.toml"
+ eerror "No setup.py found but pyproject.toml is present. Please migrate"
+ eerror "the package to use DISTUTILS_USE_PEP517. See:"
+ eerror " https://projects.gentoo.org/python/guide/distutils.html"
+ die "No setup.py found and PEP517 mode not enabled"
fi
fi
}