commit:     1b52b3cdf8eee357742bbde92d0555279f6a0f6d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 16:01:10 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 17:05:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b52b3cd

distutils-r1.eclass: "build" dir warn makes sense for pep517 only

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

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

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index b65906dcbf84..5528ff74cccf 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1171,7 +1171,7 @@ distutils-r1_python_compile() {
        # call setup.py build when using setuptools (either via PEP517
        # or in legacy mode)
        if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then
-               if [[ ${GPEP517_TESTING} ]]; then
+               if [[ ${GPEP517_TESTING} && ${DISTUTILS_USE_PEP517} ]]; then
                        if [[ -d build ]]; then
                                eqawarn "A 'build' directory exists already.  
Artifacts from this directory may"
                                eqawarn "be picked up by setuptools when 
building for another interpreter."

Reply via email to