"Any Python package that you install with brew will install the Homebrew Python build."
$ which sphinx-build
/usr/local/opt/sphinx-doc/bin/sphinx-build
~/Src/petsc/src/ksp/ksp/interface (master=) arch-master
$ more /usr/local/opt/sphinx-doc/bin/sphinx-build
#!/usr/local/Cellar/sphinx-doc/3.0.4/libexec/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from sphinx.cmd.build import main
sphinx seems to be carrying around its own python internally, thus quite rightly getting Jed upset about packaging on Apple of open source software. Or perhaps I misunderstand that line.
Barry
My fault, for some reason sphinx from brew installed its own private python so I had to do the pip at that.
Any Python package that you install with brew will install the Homebrew Python build. Start using that one, and forget about the system Python install.
From brew you get `/usr/local/bin/python3`, and then you can freely `python3 -m pip install <package>`
I further symlink `/usr/local/bin/{python|pip}3` to `~/bin/{python|pip}`, so I don't have to deal ever again with the EOLed system Apple Python 2.
--
Lisandro Dalcin
============
Research Scientist
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/