mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user