Skip to content
Rusty edited this page Feb 17, 2020 · 2 revisions

Welcome to the swift-code-metrics wiki! Here you can find helpful informations regarding SCM.

How to install graphviz on a Mac

Run:

python3 -m .venv
source .venv/bin/activate
brew install graphviz

before

pip install swift-code-metrics

Steps required MacOS Catalina

  • install graphviz
python3 -m .venv 
source .venv/bin/activate 
brew install graphviz
  • install pygraphviz pip3 install --install-option="--include-path=/usr/local/include/" --install-option="--library-path=/usr/local/lib/" pygraphviz
  • install swift-code-metrics pip3 install swift-code-metrics

(It is likely not necessary to use HomeBrew to brew reinstall python and/or brew unlink python && brew link python --overwrite python but I had done so, as part of my trial and error troubleshooting - HTH)

Clone this wiki locally