dev-util/find-work: set DISTUTILS_ALL_SUBPHASE_IMPLS

To generate shell completions, only Python targets enabled for this
package can be used.

Closes: https://bugs.gentoo.org/944221
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-11-21 14:45:46 +05:00
parent 20692bfcb5
commit 48c0e244a7
2 changed files with 20 additions and 0 deletions

View File

@@ -69,6 +69,16 @@ distutils_enable_sphinx docs \
dev-python/insipid-sphinx-theme \
dev-python/sphinx-prompt
pkg_setup() {
DISTUTILS_ALL_SUBPHASE_IMPLS=()
# bug #944221
for impl in "${PYTHON_COMPAT[@]}"; do
use "python_targets_${impl}" && \
DISTUTILS_ALL_SUBPHASE_IMPLS+=( "${impl}" )
done
}
python_compile_all() {
# copy-pasted from distutils_write_namespace
local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py"

View File

@@ -69,6 +69,16 @@ distutils_enable_sphinx docs \
dev-python/insipid-sphinx-theme \
dev-python/sphinx-prompt
pkg_setup() {
DISTUTILS_ALL_SUBPHASE_IMPLS=()
# bug #944221
for impl in "${PYTHON_COMPAT[@]}"; do
use "python_targets_${impl}" && \
DISTUTILS_ALL_SUBPHASE_IMPLS+=( "${impl}" )
done
}
python_compile_all() {
# copy-pasted from distutils_write_namespace
local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py"