diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-09 17:55:46 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-11 21:58:37 +0200 |
commit | 6451cf647f04b31a56ea2dc8c3f84a70c2468f87 (patch) | |
tree | 692ff01434a057a0e87caf114acfab8d7e7f6ed5 /eclass | |
parent | distutils-r1.eclass: Prefer "rm -rf build" over "setup.py clean -a" (diff) | |
download | gentoo-6451cf647f04b31a56ea2dc8c3f84a70c2468f87.tar.gz gentoo-6451cf647f04b31a56ea2dc8c3f84a70c2468f87.tar.bz2 gentoo-6451cf647f04b31a56ea2dc8c3f84a70c2468f87.zip |
distutils-r1.eclass: Issue a QA warning if "build" exists
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index e6b0ab5e0e32..2e4a11bb8826 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1115,7 +1115,13 @@ 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 [[ ! ${DISTUTILS_USE_PEP517} ]]; then + if [[ ${GPEP517_TESTING} ]]; 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." + eqawarn "Please remove this directory prior to building." + fi + else _distutils-r1_copy_egg_info fi |