diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-14 12:26:59 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-20 18:56:42 +0200 |
commit | a0e04d66dad73b419f423ef1a3e0459f7715da50 (patch) | |
tree | 9fe0e79c1f2b4e0b2ecd57dbee9a44d4db83afe9 /eclass | |
parent | distutils-r1.eclass: Set DISTUTILS_WHEEL_PATH in PEP517 install (diff) | |
download | gentoo-a0e04d66dad73b419f423ef1a3e0459f7715da50.tar.gz gentoo-a0e04d66dad73b419f423ef1a3e0459f7715da50.tar.bz2 gentoo-a0e04d66dad73b419f423ef1a3e0459f7715da50.zip |
distutils-r1.eclass: Store created wheels in DISTUTILS_WHEELS
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 1037c0abe239..955c41fe4e2d 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1532,6 +1532,15 @@ distutils_pep517_install() { DISTUTILS_WHEEL_PATH=${WHEEL_BUILD_DIR}/${wheel} } +# @VARIABLE: DISTUTILS_WHEELS +# @DESCRIPTION: +# An associative array of wheels created as a result +# of distutils-r1_python_compile invocations, mapped to the source +# directories. Note that this includes only wheels implicitly created +# by the eclass, and not wheels created as a result of direct +# distutils_pep517_install calls in the ebuild. +declare -g -A DISTUTILS_WHEELS=() + # @FUNCTION: distutils-r1_python_compile # @USAGE: [additional-args...] # @DESCRIPTION: @@ -1541,6 +1550,7 @@ distutils_pep517_install() { # # If DISTUTILS_USE_PEP517 is set to any other value, builds a wheel # using the PEP517 backend and installs it into ${BUILD_DIR}/install. +# Path to the wheel is then added to DISTUTILS_WHEELS array. # # In legacy mode, runs 'esetup.py build'. Any parameters passed to this # function will be appended to setup.py invocation, i.e. passed @@ -1576,6 +1586,7 @@ distutils-r1_python_compile() { if [[ ${DISTUTILS_USE_PEP517} ]]; then distutils_pep517_install "${BUILD_DIR}/install" + DISTUTILS_WHEELS+=( "${DISTUTILS_WHEEL_PATH}" "${PWD}" ) fi } |