diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-06-10 20:58:16 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-06-14 14:26:10 +0200 |
commit | 8c7703e917f8ff61c4fa7881ef664eb9054c23d6 (patch) | |
tree | 61e06f691e56a673ac3419267ba7c6a10dc19e06 /eclass | |
parent | distutils-r1.eclass: Change "PEP 517" to "PEP517", for consistency (diff) | |
download | gentoo-8c7703e917f8ff61c4fa7881ef664eb9054c23d6.tar.gz gentoo-8c7703e917f8ff61c4fa7881ef664eb9054c23d6.tar.bz2 gentoo-8c7703e917f8ff61c4fa7881ef664eb9054c23d6.zip |
python-r1.eclass: Override PYTHON*_USEDEP in sub-phases
Override the value of PYTHON_USEDEP and PYTHON_SINGLE_USEDEP to match
the current implementation inside sub-phase function. This makes
it possible to use them in has_version checks with conditional
dependencies.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-r1.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index fbc6082a1d92..c5fa6770558f 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: python-r1.eclass @@ -594,6 +594,8 @@ _python_multibuild_wrapper() { local -x EPYTHON PYTHON local -x PATH=${PATH} PKG_CONFIG_PATH=${PKG_CONFIG_PATH} + local PYTHON_USEDEP="python_targets_${MULTIBUILD_VARIANT}(-)" + local PYTHON_SINGLE_USEDEP="python_single_target_${MULTIBUILD_VARIANT}(-)" _python_export "${MULTIBUILD_VARIANT}" EPYTHON PYTHON _python_wrapper_setup |