dev-python/pytest: arm64 stable (bug #723996)
[gentoo.git] / eclass / scons-utils.eclass
index 615e00e314ad9469cb2d9781b0ac4b738da7f12c..33838e3ec8bb6286893758f99102308cf72934dd 100644 (file)
@@ -1,9 +1,10 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: scons-utils.eclass
 # @MAINTAINER:
 # mgorny@gentoo.org
+# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
 # @BLURB: helper functions to deal with SCons buildsystem
 # @DESCRIPTION:
 # This eclass provides a set of function to help developers sanely call
@@ -125,8 +126,9 @@ if [[ ${_PYTHON_ANY_R1} ]]; then
        }
        python_check_deps() { scons-utils_python_check_deps; }
 elif [[ ${_PYTHON_SINGLE_R1} ]]; then
-       # when using python-single-r1, use plain PYTHON_USEDEP API
-       BDEPEND="${SCONS_DEPEND}[${PYTHON_USEDEP}]
+       # when using python-single-r1, use PYTHON_MULTI_USEDEP API
+       BDEPEND="
+               $(python_gen_cond_dep "${SCONS_DEPEND}[\${PYTHON_MULTI_USEDEP}]")
                ${PYTHON_DEPS}"
 elif [[ ${EAPI:-0} == [0123456] ]]; then
        # in older EAPIs, just force Python 2.7