From 03329095620046ff9da52c51b00d3340263981dd Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Sat, 7 Sep 2024 10:19:50 -0400 Subject: [PATCH] CI: Fix up macos pygraphviz install (#134) --- .github/workflows/notebooks.yml | 9 +++++++++ requirements.txt | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 73b5455c..194a2020 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -44,6 +44,15 @@ jobs: pip install -U pip pip install -r requirements.txt + if [ "$RUNNER_OS" == "macOS" ]; then + pip install --config-settings="--global-option=build_ext" \ + --config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \ + --config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \ + pygraphviz + elif [ "$RUNNER_OS" == "Linux" ]; then + pip install pygraphviz + fi + - name: Lint with precommit run: | pip install pre-commit diff --git a/requirements.txt b/requirements.txt index 6fa8a033..72537683 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,3 @@ sphinx-book-theme jupytext black pyupgrade - -# Notebook requirements -pygraphviz -