commit:     36ed429cd826bfc8341cf8c10bd5e704dcde5a3c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  4 09:24:22 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov  4 09:25:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ed429c

distutils-r1.eclass: Skip pyproject.toml check if DUS=manual

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/distutils-r1.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 3513a74c4db..46253759b1d 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -610,6 +610,8 @@ _distutils-r1_disable_ez_setup() {
 # @DESCRIPTION:
 # Generate setup.py for pyproject.toml if requested.
 _distutils-r1_handle_pyproject_toml() {
+       [[ ${DISTUTILS_USE_SETUPTOOLS} == manual ]] && return
+
        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"

Reply via email to