From d31cadb8239a70f76fe1193521090e059216b235 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 5 May 2023 05:53:00 +0200 Subject: distutils-r1.eclass: Add IUSE=debug w/ DISTUTILS_EXT+_OPTIONAL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- eclass/distutils-r1.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad