---
gx86/eclass/python-r1.eclass | 30 +++++++++---------------------
1 file changed, 9 insertions(+), 21 deletions(-)
diff --git a/gx86/eclass/python-r1.eclass b/gx86/eclass/python-r1.eclass
index 934f32d..36b20dc 100644
--- a/gx86/eclass/python-r1.eclass
+++ b/gx86/eclass/python-r1.eclass
@@ -348,34 +348,22 @@ python_gen_cond_dep() {
# @FUNCTION: python_copy_sources
# @DESCRIPTION:
-# Create a single copy of the package sources (${S}) for each enabled
-# Python implementation.
+# Create a single copy of the package sources for each enabled Python
+# implementation.
#
-# The sources are always copied from S to implementation-specific build
-# directories respecting BUILD_DIR.
+# The sources are always copied from initial BUILD_DIR (or S if unset)
+# to implementation-specific build directory matching BUILD_DIR used by
+# python_foreach_abi().
python_copy_sources() {
debug-print-function ${FUNCNAME} "${@}"
_python_validate_useflags
+ _python_check_USE_PYTHON
- local impl
- local bdir=${BUILD_DIR:-${S}}
-
- debug-print "${FUNCNAME}: bdir = ${bdir}"
- einfo "Will copy sources from ${S}"
- # the order is irrelevant here
- for impl in "${PYTHON_COMPAT[@]}"; do
- _python_impl_supported "${impl}" || continue
-
- if use "python_targets_${impl}"
- then
- local BUILD_DIR=${bdir%%/}-${impl}
+ local MULTIBUILD_VARIANTS
+ _python_obtain_impls
- einfo "${impl}: copying to ${BUILD_DIR}"
- debug-print "${FUNCNAME}: [${impl}] cp ${S} =>
${BUILD_DIR}"
- cp -pr "${S}" "${BUILD_DIR}" || die
- fi
- done
+ multibuild_copy_sources
}
# @FUNCTION: _python_check_USE_PYTHON
--
1.8.1.5