[CI] Use env variable to enable pip breaking system packages

This patch uses an env variable instead of the --break-system-packages
flag. This enables the heterogenous configuration between the old and
new premerge systems as the old premerge container does not recognize
the --break-system-packages flag. An env variable will work on new
premerge and have no impact on old premerge.
This commit is contained in:
Aiden Grossman 2025-04-05 20:04:04 +00:00
parent ed2b82fb8b
commit 582b1b2ac9

View File

@ -53,9 +53,10 @@ targets="${2}"
lit_args="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --use-unique-output-file-name --timeout=1200 --time-tests"
echo "--- cmake"
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
export PIP_BREAK_SYSTEM_PACKAGES=1
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \