Improve unversioned python location specification

brew --prefix python errors out when the python package is not
installed, so using that instead of brew --prefix prevents python
package installation issues from silently breaking, for example, shell
env scripts that add this to $PATH.

See https://github.com/orgs/Homebrew/discussions/3596#discussioncomment-5050569
This commit is contained in:
Nicholas (Nick) Meyer 2023-02-20 16:28:42 -08:00 committed by GitHub
parent 7e48ed50f7
commit 5b80085837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ The executables are organised as follows:
Unversioned symlinks for `python`, `python-config`, `pip` etc. are installed here: Unversioned symlinks for `python`, `python-config`, `pip` etc. are installed here:
```sh ```sh
$(brew --prefix)/opt/python/libexec/bin $(brew --prefix python)/libexec/bin
``` ```
## Setuptools, pip, etc. ## Setuptools, pip, etc.