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.
This commit is contained in:
parent
9549f7c5b4
commit
74e0a12915
|
@ -25,6 +25,8 @@ do_install() {
|
||||||
# As with do_build, no need to accommodate cross compilation here
|
# As with do_build, no need to accommodate cross compilation here
|
||||||
: ${make_install_target:=${pkgname#python3-}-${version}-*-*-*.whl}
|
: ${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 \
|
TMPDIR=build python3 -m pip install --use-pep517 --prefix /usr \
|
||||||
--root ${DESTDIR} --no-deps --no-build-isolation \
|
--root ${DESTDIR} --no-deps --no-build-isolation \
|
||||||
--no-clean ${make_install_args} ${make_install_target}
|
--no-clean ${make_install_args} ${make_install_target}
|
||||||
|
|
Loading…
Reference in New Issue