From e818a40969516b932b7d996cbc26c986d902577c Mon Sep 17 00:00:00 2001 From: devdavidejesus Date: Fri, 23 Oct 2026 21:43:14 -0300 Subject: [PATCH] Fix two details in the macOS build instructions xcode-select --install does not put the system headers in /usr/include on current macOS; they are in the SDK reported by xcrun --show-sdk-path. Also fix a typo: libzma -> liblzma. --- getting-started/setup-building.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index b2309f809..9271b5e20 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -860,15 +860,15 @@ some of CPython's modules (for example, ``zlib``). $ xcode-select --install - This will also ensure that the system header files are installed into - ``/usr/include``. + This also installs the macOS SDK, which contains the system header files + (``xcrun --show-sdk-path`` prints its location). .. _Homebrew: https://brew.sh .. _MacPorts: https://www.macports.org Also note that macOS does not include several libraries used by the Python - standard library, including ``libzma``, so expect to see some extension module + standard library, including ``liblzma``, so expect to see some extension module build failures unless you install local copies of them. As of OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL which means that you will not be able to build the ``_ssl`` extension.