[Stable Only] Use no-build-isolation only in venv

Follow up of [1], as it breaks the jobs not using venv
like centos/rocky.

[1] https://review.opendev.org/c/openstack/devstack/+/976106

Change-Id: I9f7affadc6abac4b18dd9ff35a4c83e582468259
Signed-off-by: Yatin Karel <ykarel@redhat.com>
This commit is contained in:
2026-02-19 19:59:52 +05:30
committed by yatin
parent ffe1a5ad07
commit 7ff6b8abd0

View File

@@ -211,9 +211,11 @@ function pip_install {
cmd_pip="$cmd_pip install"
# Always apply constraints
cmd_pip="$cmd_pip -c $REQUIREMENTS_DIR/upper-constraints.txt"
# NOTE(stephenfin): stable-only change to disable build-isolation so that
# we can pin setuptools on these old branches
cmd_pip="$cmd_pip --no-build-isolation"
if [ "${sudo_pip}" == "env" ]; then
# NOTE(stephenfin): stable-only change to disable build-isolation so that
# we can pin setuptools on these old branches
cmd_pip="$cmd_pip --no-build-isolation"
fi
$xtrace