We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7551836 commit 32ecd35Copy full SHA for 32ecd35
.github/workflows/_build_macos.yml
@@ -111,8 +111,16 @@ jobs:
111
python_cmd="python3"
112
fi
113
114
+ # Upgrade pip to ensure we have the latest features
115
+ "$python_cmd" -m pip install --upgrade pip || true
116
+
117
# Install the wheel in a fresh environment
- "$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
124
125
# Run the test script
126
echo ""
0 commit comments