From def53da009836eb00868b89de930fc470ba15498 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 22 Sep 2022 10:06:13 -0400 Subject: [PATCH] common/build-style/python3-pep517.sh: use full path for TMPDIR fixes side effects with setuptools_rust / rustc --- common/build-style/python3-pep517.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/build-style/python3-pep517.sh b/common/build-style/python3-pep517.sh index 1eeb4172492..da1e238e119 100644 --- a/common/build-style/python3-pep517.sh +++ b/common/build-style/python3-pep517.sh @@ -8,7 +8,7 @@ do_build() { : ${make_build_target:=.} mkdir -p build - TMPDIR=build python3 -m pip wheel --no-deps --use-pep517 --no-clean \ + TMPDIR="${PWD}/build" python3 -m pip wheel --no-deps --use-pep517 --no-clean \ --no-build-isolation ${make_build_args} ${make_build_target} } @@ -35,7 +35,7 @@ do_install() { # If do_build was overridden, make sure the TMPDIR exists mkdir -p build - TMPDIR=build python3 -m pip install --use-pep517 --prefix /usr \ + TMPDIR="${PWD}/build" python3 -m pip install --use-pep517 --prefix /usr \ --root ${DESTDIR} --no-deps --no-build-isolation \ --no-clean ${make_install_args} ${make_install_target} }