aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-11-21 14:45:46 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-11-21 14:49:27 +0500
commit48c0e244a79e3e00f04b8d51df1883504c28e6b2 (patch)
treec0b53476d6f6f826aade10eb9c8abab8bc5a3d4a
parentmedia-video/uxplay: add 1.70 (diff)
downloadguru-48c0e244a79e3e00f04b8d51df1883504c28e6b2.tar.gz
guru-48c0e244a79e3e00f04b8d51df1883504c28e6b2.tar.bz2
guru-48c0e244a79e3e00f04b8d51df1883504c28e6b2.zip
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>
-rw-r--r--dev-util/find-work/find-work-0.990.0.ebuild10
-rw-r--r--dev-util/find-work/find-work-9999.ebuild10
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-util/find-work/find-work-0.990.0.ebuild b/dev-util/find-work/find-work-0.990.0.ebuild
index d487006d1..d39534f36 100644
--- a/dev-util/find-work/find-work-0.990.0.ebuild
+++ b/dev-util/find-work/find-work-0.990.0.ebuild
@@ -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"
diff --git a/dev-util/find-work/find-work-9999.ebuild b/dev-util/find-work/find-work-9999.ebuild
index d487006d1..d39534f36 100644
--- a/dev-util/find-work/find-work-9999.ebuild
+++ b/dev-util/find-work/find-work-9999.ebuild
@@ -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"