summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-05 05:53:00 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-05 06:55:39 +0200
commitd31cadb8239a70f76fe1193521090e059216b235 (patch)
tree0a0a335023d01c6c13b5a633bd16de91ac0fe449 /eclass
parentdev-python/libvirt-python: forward ~arm (diff)
downloadgentoo-d31cadb8239a70f76fe1193521090e059216b235.tar.gz
gentoo-d31cadb8239a70f76fe1193521090e059216b235.tar.bz2
gentoo-d31cadb8239a70f76fe1193521090e059216b235.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass5
1 files changed, 4 insertions, 1 deletions
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