Skip to content

Commit 7c8dbca

Browse files
committed
ci: work around macOS pip restrictions
macOS 15 (Sequoia)'s pip by default refuses to install packages that may produce conflicts with the system-wide Python environment. Work around this by over-riding pip's default safety measures. The sphinx package installed by pip3 does not work for some reason. Install sphinx support via homebrew instead. We may one day need to install Python packages needed for our test harness in a virtual environment and run the test script in the same virtual environment. For now just fix up macOS and revisit this for other platforms later. Signed-off-by: Vincent Fu <[email protected]>
1 parent b2c6231 commit 7c8dbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/actions-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ install_macos() {
191191
#echo "Updating homebrew..."
192192
#brew update >/dev/null 2>&1
193193
echo "Installing packages..."
194-
HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs
195-
pip3 install scipy six statsmodels sphinx
194+
HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs sphinx-doc
195+
pip3 install scipy six statsmodels --user --break-system-packages
196196
}
197197

198198
install_windows() {

0 commit comments

Comments
 (0)