common/build-style/python3-pep517.sh: use full path for TMPDIR

fixes side effects with setuptools_rust / rustc
This commit is contained in:
Joel Beckmeyer 2022-09-22 10:06:13 -04:00 committed by Andrew J. Hesford
parent a93b2ebff6
commit def53da009
1 changed files with 2 additions and 2 deletions

View File

@ -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}
}