Skip to content

Commit 582b1b2

Browse files
[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.
1 parent ed2b82f commit 582b1b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.ci/monolithic-linux.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ targets="${2}"
5353
lit_args="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --use-unique-output-file-name --timeout=1200 --time-tests"
5454

5555
echo "--- cmake"
56-
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
57-
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
58-
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
56+
export PIP_BREAK_SYSTEM_PACKAGES=1
57+
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
58+
pip install -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
59+
pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
5960
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
6061
-D LLVM_ENABLE_PROJECTS="${projects}" \
6162
-G Ninja \

0 commit comments

Comments
 (0)