From ac94c4fa68ae6edf3016a4b2ab3ac6c0e2b62b93 Mon Sep 17 00:00:00 2001 From: Parul Date: Mon, 4 Mar 2024 14:27:55 -0500 Subject: [PATCH] Trying to fix pygraphviz build --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbd7f89..281c616 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,8 +71,13 @@ jobs: fi pip install .[plotting] - unset LDFLAGS - unset CPPFLAGS + export GRAPHVIZ_DIR="$(brew --prefix graphviz)" + pip install pygraphviz \ + --global-option=build_ext \ + --global-option="-I$GRAPHVIZ_DIR/include" \ + --global-option="-L$GRAPHVIZ_DIR/lib" + unset LDFLAGS + unset CPPFLAGS pip install .[postgres] pip install .[R] @@ -91,6 +96,13 @@ jobs: fi pip install .[plotting] + export GRAPHVIZ_DIR="$(brew --prefix graphviz)" + pip install pygraphviz \ + --global-option=build_ext \ + --global-option="-I$GRAPHVIZ_DIR/include" \ + --global-option="-L$GRAPHVIZ_DIR/lib" + unset LDFLAGS + unset CPPFLAGS unset LDFLAGS unset CPPFLAGS elif [ $PYPI_BUILD = 'only_r' ]; then