fix header + anchor

Technically PEP 668 isn't unique to 3.12 anyways.

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2024-08-01 10:10:32 -04:00
parent c354c288ae
commit 52fd495a5c
No known key found for this signature in database

View File

@ -31,7 +31,7 @@ The Python formulae install [pip](https://pip.pypa.io/) (as `pip3`). Python@3.11
Starting with Python 3.12, the bundled Python packages should be updated by reinstalling brewed Python. For older Python formulae, they can be updated as described below.
**Warning!** The steps below **do not work** for Homebrew's Python 3.12 or newer. If you need a newer version of `pip` or `setuptools` than comes with the Homebrewed Python, you **must** use a virtual environment or other isolation mechanism [per below](#pep-668-python312-and-virtual-environments).
**Warning!** The steps below **do not work** for Homebrew's Python 3.12 or newer. If you need a newer version of `pip` or `setuptools` than comes with the Homebrewed Python, you **must** use a virtual environment or other isolation mechanism [per below](#pep-668-and-virtual-environments).
Setuptools can be updated via `pip`, without having to reinstall brewed Python:
@ -86,7 +86,7 @@ Since the system Python may not know which compiler flags to set when building b
CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" pip install <package>
```
## PEP 668 (Python 3.12) and virtual environments
## PEP 668 and virtual environments
Starting with Python 3.12, Homebrew follows [PEP 668](https://peps.python.org/pep-0668/#marking-an-interpreter-as-using-an-external-package-manager).