commit: 880680ed909815d978be1a9b4b582bd698250276
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 15 18:51:44 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 15 19:12:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=880680ed
distutils-r1.eclass: Require explicit root for d_pep517_install
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index cdd57149720d..9e7970fc2833 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -990,18 +990,18 @@ _distutils-r1_get_backend() {
}
# @FUNCTION: distutils_pep517_install
-# @USAGE: [<root>]
+# @USAGE: <root>
# @DESCRIPTION:
# Build the wheel for the package in the current directory using PEP 517
-# backend and install it into <root>. If <root> is not specified,
-# ${BUILD_DIR}/install is used.
+# backend and install it into <root>.
#
# This function is intended for expert use only. It does not handle
# wrapping executables.
distutils_pep517_install() {
debug-print-function ${FUNCNAME} "${@}"
+ [[ ${#} -eq 1 ]] || die "${FUNCNAME} takes exactly one argument: root"
- local root=${1:-${BUILD_DIR}/install}
+ local root=${1}
local -x WHEEL_BUILD_DIR=${BUILD_DIR}/wheel
mkdir -p "${WHEEL_BUILD_DIR}" || die