From 1b52b3cdf8eee357742bbde92d0555279f6a0f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 21 Apr 2022 18:01:10 +0200 Subject: [PATCH] distutils-r1.eclass: "build" dir warn makes sense for pep517 only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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 b65906dcbf844..5528ff74cccf4 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."