Skip to content

Commit 32ecd35

Browse files
committed
fix mac build
1 parent 7551836 commit 32ecd35

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/_build_macos.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,16 @@ jobs:
111111
python_cmd="python3"
112112
fi
113113
114+
# Upgrade pip to ensure we have the latest features
115+
"$python_cmd" -m pip install --upgrade pip || true
116+
114117
# Install the wheel in a fresh environment
115-
"$python_cmd" -m pip install --force-reinstall --break-system-packages "$wheel"
118+
# Use --break-system-packages if supported (pip >= 22.1)
119+
if "$python_cmd" -m pip install --help | grep -q "break-system-packages"; then
120+
"$python_cmd" -m pip install --force-reinstall --break-system-packages "$wheel"
121+
else
122+
"$python_cmd" -m pip install --force-reinstall "$wheel"
123+
fi
116124
117125
# Run the test script
118126
echo ""

0 commit comments

Comments
 (0)