A little writeup about my wrangling...
- when I attempted:
brew install --HEAD watchman
got the error:ImportError: No module named setuptools
- reviewing Logs/Homebrew/watchman/05.python, realized that ~/.pyenv was nowhere to be found on PATH (indicating that the build was leveraging system Python, which happened to be 2.)
- made sure pyenv init was being called in both .bashrc/.zshrc
- build (local) was still failing
- noticed the following subdir at the front of PATH: /usr/local/Homebrew/Library/Homebrew/shims/super
- removed /usr/local/opt/python@2.
- decided to kludge a fix just to get Watchman build/install to work so I could make progress :-P
$ cd /usr/local/Homebrew/Library/Homebrew/shims/super
$ python --version
2.7.14
$ ln /Users/abull/.pyenv/shims/python python`
$ python --version
3.6.2
$ brew install --HEAD watchman
Error: /usr/local/opt/python@2 not present or broken
Please reinstall python@2
- Ooops...
- went through fixing python@2 and python@3 with brew
$ brew install --HEAD watchman
...
OSError: [Errno 2] No such file or directory ''
- ugh....
- going back into /usr/local/Homebrew/Library/Homebrew/shims/super, python symlink was no longer to be found
In the end, simply: brew install watchman
(maybe all the re-installs of Python helped cleanup whatever wasn't working when I tried that before.)