commit: d31cadb8239a70f76fe1193521090e059216b235 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri May 5 03:53:00 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri May 5 04:55:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d31cadb8
distutils-r1.eclass: Add IUSE=debug w/ DISTUTILS_EXT+_OPTIONAL Fix DISTUTILS_EXT to add IUSE=debug even if DISTUTILS_OPTIONAL is used. This was the intended behavior, as documented in the Python Guide. Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 57c0548e28ff..2547af99eb76 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -330,9 +330,12 @@ _distutils_set_globals() { if [[ ${DISTUTILS_EXT} ]]; then DEPEND="${PYTHON_DEPS}" - IUSE="debug" fi fi + + if [[ ${DISTUTILS_EXT} ]]; then + IUSE="debug" + fi } _distutils_set_globals unset -f _distutils_set_globals