[Stable-Only] Enable build isolation for gnocchi

Disabling the build isolation breaks installing gnocchi, which
results in telemetry tests failing on stable branches as well
as the grenade test failing for ceilometer on master.

Conflicts:
	inc/python

Change-Id: I00f504b80d087072a32e0e64e46b7dff4b2ff683
Signed-off-by: Jaromir Wysoglad <jwysogla@redhat.com>
(cherry picked from commit 58e156c2cd)
This commit is contained in:
Jaromir Wysoglad
2026-02-16 09:13:16 -05:00
committed by Takashi Kajinami
parent 7ff6b8abd0
commit ceec372db7

View File

@@ -212,9 +212,13 @@ function pip_install {
# Always apply constraints
cmd_pip="$cmd_pip -c $REQUIREMENTS_DIR/upper-constraints.txt"
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"
# NOTE(stephenfin): stable-only change to disable build-isolation so
# that we can pin setuptools on these old branches
# NOTE(jwysogla): Gnocchi doesn't install correctly without
# build-isolation, so disable it only if we aren't installing Gnocchi
if [[ ! "$@" =~ "gnocchi" ]]; then
cmd_pip="$cmd_pip --no-build-isolation"
fi
fi
$xtrace