summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-21 18:01:10 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-21 19:05:59 +0200
commit1b52b3cdf8eee357742bbde92d0555279f6a0f6d (patch)
treee18178de30b0c993a7b774bedc8b577de9c79452 /eclass
parentRename dev-python/{setuptools_rust → setuptools-rust} (diff)
downloadgentoo-1b52b3cdf8eee357742bbde92d0555279f6a0f6d.tar.gz
gentoo-1b52b3cdf8eee357742bbde92d0555279f6a0f6d.tar.bz2
gentoo-1b52b3cdf8eee357742bbde92d0555279f6a0f6d.zip
distutils-r1.eclass: "build" dir warn makes sense for pep517 only
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass2
1 files changed, 1 insertions, 1 deletions
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."