From 7ff6b8abd0e948bc21140b00fbeb68e055906650 Mon Sep 17 00:00:00 2001 From: Yatin Karel Date: Thu, 19 Feb 2026 19:59:52 +0530 Subject: [PATCH] [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 --- inc/python | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inc/python b/inc/python index 29e4f38ca4..35f00bb21d 100644 --- a/inc/python +++ b/inc/python @@ -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