From 74e0a1291575149b457f607a264857293910781c Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 3 Feb 2021 16:24:49 -0500 Subject: [PATCH] build-style/python3-pep517: make sure ./build exists in do_install This allows templates to override do_build and not have to create the build subdirectory used as TMPDIR in do_install; failure to create this directory will cause pip to use (and pollute) /tmp in the masterdir. --- common/build-style/python3-pep517.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/build-style/python3-pep517.sh b/common/build-style/python3-pep517.sh index 1a3c6d31eed..4051185a28e 100644 --- a/common/build-style/python3-pep517.sh +++ b/common/build-style/python3-pep517.sh @@ -25,6 +25,8 @@ do_install() { # As with do_build, no need to accommodate cross compilation here : ${make_install_target:=${pkgname#python3-}-${version}-*-*-*.whl} + # If do_build was overridden, make sure the TMPDIR exists + mkdir -p build TMPDIR=build python3 -m pip install --use-pep517 --prefix /usr \ --root ${DESTDIR} --no-deps --no-build-isolation \ --no-clean ${make_install_args} ${make_install_target}