Skip to content

Commit

Permalink
distutils-r1.eclass: "build" dir warn makes sense for pep517 only
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Apr 21, 2022
1 parent c222227 commit 1b52b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/distutils-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 1b52b3c

Please sign in to comment.