docs: Improve portability of brew prefix (#667)

homebrew's prefix can vary - with this minor change, the pkgconfig path
should work in more user environments.
This commit is contained in:
Alex Schmitz
2023-11-15 04:51:10 -06:00
committed by GitHub
parent 2e86ccec70
commit 3805b28abc

View File

@ -59,7 +59,7 @@ If you don't want to install MySQL server, you can use mysql-client instead:
```bash
$ # Assume you are activating Python 3 venv
$ brew install mysql-client pkg-config
$ export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
$ pip install mysqlclient
```