Skip to content

Commit dc28c3a

Browse files
gh-160547: Fix outdated details in the macOS build READMEs (#160548)
1 parent 46edd6f commit dc28c3a

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

‎Mac/BuildScript/README.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Building a Python Mac OS X distribution
22
=======================================
33

4-
The ``build-install.py`` script creates Python distributions, including
4+
The ``build-installer.py`` script creates Python distributions, including
55
certain third-party libraries as necessary. It builds a complete
66
framework-based Python out-of-tree, installs it in a funny place with
77
$DESTROOT, massages that installation to remove .pyc files and such, creates
@@ -12,7 +12,7 @@ package. This format is deprecated and is no longer supported by modern
1212
macOS systems; it is usable on macOS 10.6 and earlier systems.
1313
To be usable on newer versions of macOS, the bits in the bundle package
1414
must be assembled in a macOS flat installer package, using current
15-
versions of the pkgbuild and productbuild utilities. To pass macoS
15+
versions of the pkgbuild and productbuild utilities. To pass macOS
1616
Gatekeeper download quarantine, the final package must be signed
1717
with a valid Apple Developer ID certificate using productsign.
1818
Starting with macOS 10.15 Catalina, Gatekeeper now also requires
@@ -28,7 +28,7 @@ A goal of PSF-provided (python.org) Python binaries for macOS is to
2828
support a wide-range of operating system releases with one set of
2929
binaries. Currently, the oldest release supported by python.org
3030
binaries is macOS 10.9; it should still be possible to build Python and
31-
Python installers on older versions of macOS but we not regularly
31+
Python installers on older versions of macOS but we do not regularly
3232
test on those systems nor provide binaries for them.
3333

3434
Prior to Python 3.9.1, no Python releases supported building on a
@@ -74,7 +74,7 @@ download them.
7474
- builds the following third-party libraries
7575

7676
* OpenSSL 3.5.x
77-
* Tcl/Tk 8.6.x
77+
* Tcl/Tk 9.0.x
7878
* NCurses
7979
* SQLite
8080
* XZ

‎Mac/README.rst‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ machines. In macOS 10.5 support was extended to 64-bit Intel and 64-bit PPC
9797
architectures. It is possible to build Python with various combinations
9898
of architectures depending on the build tools and macOS version in use.
9999
Note that PPC support was removed in macOS 10.7 and 32-bit Intel support
100-
was removed in macOS 10.15. So currently as of macOS 10.15, macOS only
101-
supports one execution architecture, 64-bit Intel (``x86_64``).
100+
was removed in macOS 10.15. macOS 11 added support for Apple Silicon
101+
(``arm64``).
102102

103103
2. How do I build a universal binary
104104
------------------------------------
@@ -173,8 +173,8 @@ following combinations of SDKs and universal-archs flavors are available:
173173
* 11.0 and later SDKs support ``universal2``
174174

175175
The makefile for a framework build will also install ``python3.x-32``
176-
binaries when the universal architecture includes at least one 32-bit
177-
architecture (that is, for all flavors but ``64-bit`` and ``intel-64``).
176+
binaries when the universal architecture includes both 32-bit and 64-bit
177+
architectures (that is, for the ``all``, ``intel`` and ``3-way`` flavors).
178178
It will also install ``python3.x-intel64`` binaries in the ``universal2``
179179
case to allow easy execution with the Rosetta 2 Intel emulator on Apple
180180
Silicon Macs.
@@ -225,7 +225,7 @@ While it is technically possible to create a .app without using frameworks you
225225
will have to do the work yourself if you really want this.
226226

227227
A second reason for using frameworks is that they put Python-related items in
228-
only two places: "/Library/Framework/Python.framework" and
228+
only two places: "/Library/Frameworks/Python.framework" and
229229
"/Applications/Python <VERSION>" where ``<VERSION>`` can be e.g. "3.8",
230230
"2.7", etc. This simplifies matters for users installing
231231
Python from a binary distribution if they want to get rid of it again. Moreover,
@@ -275,15 +275,15 @@ in the sequence
275275

276276
3. make install
277277

278-
This sequence will put the framework in ``/Library/Framework/Python.framework``,
278+
This sequence will put the framework in ``/Library/Frameworks/Python.framework``,
279279
the applications in ``/Applications/Python <VERSION>`` and the unix tools in
280280
``/usr/local/bin``.
281281

282282
Installing in another place, for instance ``$HOME/Library/Frameworks`` if you
283283
have no admin privileges on your machine, is possible. This can be accomplished
284284
by configuring with ``--enable-framework=$HOME/Library/Frameworks``.
285285
The other two directories will then also be installed in your home directory,
286-
at ``$HOME/Applications/Python-<VERSION>`` and ``$HOME/bin``.
286+
at ``$HOME/Applications/Python <VERSION>`` and ``$HOME/bin``.
287287

288288
If you want to install some part, but not all, read the main Makefile. The
289289
frameworkinstall is composed of a couple of sub-targets that install the
@@ -326,11 +326,8 @@ documentation set for this release for inclusion in the framework. The
326326
installer package will create links to the documentation for use by IDLE,
327327
pydoc, shell users, and Finder user.
328328

329-
The script will build a universal binary so you'll therefore have to run this
330-
script on macOS 10.4 or later and with Xcode 2.1 or later installed.
331-
However, the Python build process itself has several build dependencies not
332-
available out of the box with macOS 10.4 so you may have to install
333-
additional software beyond what is provided with Xcode 2.
329+
The script will build a universal binary. See ``Mac/BuildScript/README.rst``
330+
for the recommended build environment.
334331
It should be possible to use SDKs and/or older
335332
versions of Xcode to build installers that are compatible with older systems
336333
on a newer system but this may not be completely foolproof so the resulting

0 commit comments

Comments
 (0)