mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
gh-160547: Fix outdated details in the macOS build READMEs (#160548)
This commit is contained in:
1 parent
46edd6fa41
commit
dc28c3a358
2 files changed
+13
-16
No files matched your search
@@ -1,7 +1,7 @@
|
||||
Building a Python Mac OS X distribution
|
||||
=======================================
|
||||
|
||||
The ``build-install.py`` script creates Python distributions, including
|
||||
The ``build-installer.py`` script creates Python distributions, including
|
||||
certain third-party libraries as necessary. It builds a complete
|
||||
framework-based Python out-of-tree, installs it in a funny place with
|
||||
$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
|
||||
macOS systems; it is usable on macOS 10.6 and earlier systems.
|
||||
To be usable on newer versions of macOS, the bits in the bundle package
|
||||
must be assembled in a macOS flat installer package, using current
|
||||
versions of the pkgbuild and productbuild utilities. To pass macoS
|
||||
versions of the pkgbuild and productbuild utilities. To pass macOS
|
||||
Gatekeeper download quarantine, the final package must be signed
|
||||
with a valid Apple Developer ID certificate using productsign.
|
||||
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
|
||||
support a wide-range of operating system releases with one set of
|
||||
binaries. Currently, the oldest release supported by python.org
|
||||
binaries is macOS 10.9; it should still be possible to build Python and
|
||||
Python installers on older versions of macOS but we not regularly
|
||||
Python installers on older versions of macOS but we do not regularly
|
||||
test on those systems nor provide binaries for them.
|
||||
|
||||
Prior to Python 3.9.1, no Python releases supported building on a
|
||||
@@ -74,7 +74,7 @@ download them.
|
||||
- builds the following third-party libraries
|
||||
|
||||
* OpenSSL 3.5.x
|
||||
* Tcl/Tk 8.6.x
|
||||
* Tcl/Tk 9.0.x
|
||||
* NCurses
|
||||
* SQLite
|
||||
* XZ
|
||||
|
||||
+9
-12
@@ -97,8 +97,8 @@ machines. In macOS 10.5 support was extended to 64-bit Intel and 64-bit PPC
|
||||
architectures. It is possible to build Python with various combinations
|
||||
of architectures depending on the build tools and macOS version in use.
|
||||
Note that PPC support was removed in macOS 10.7 and 32-bit Intel support
|
||||
was removed in macOS 10.15. So currently as of macOS 10.15, macOS only
|
||||
supports one execution architecture, 64-bit Intel (``x86_64``).
|
||||
was removed in macOS 10.15. macOS 11 added support for Apple Silicon
|
||||
(``arm64``).
|
||||
|
||||
2. How do I build a universal binary
|
||||
------------------------------------
|
||||
@@ -173,8 +173,8 @@ following combinations of SDKs and universal-archs flavors are available:
|
||||
* 11.0 and later SDKs support ``universal2``
|
||||
|
||||
The makefile for a framework build will also install ``python3.x-32``
|
||||
binaries when the universal architecture includes at least one 32-bit
|
||||
architecture (that is, for all flavors but ``64-bit`` and ``intel-64``).
|
||||
binaries when the universal architecture includes both 32-bit and 64-bit
|
||||
architectures (that is, for the ``all``, ``intel`` and ``3-way`` flavors).
|
||||
It will also install ``python3.x-intel64`` binaries in the ``universal2``
|
||||
case to allow easy execution with the Rosetta 2 Intel emulator on Apple
|
||||
Silicon Macs.
|
||||
@@ -225,7 +225,7 @@ While it is technically possible to create a .app without using frameworks you
|
||||
will have to do the work yourself if you really want this.
|
||||
|
||||
A second reason for using frameworks is that they put Python-related items in
|
||||
only two places: "/Library/Framework/Python.framework" and
|
||||
only two places: "/Library/Frameworks/Python.framework" and
|
||||
"/Applications/Python <VERSION>" where ``<VERSION>`` can be e.g. "3.8",
|
||||
"2.7", etc. This simplifies matters for users installing
|
||||
Python from a binary distribution if they want to get rid of it again. Moreover,
|
||||
@@ -275,7 +275,7 @@ in the sequence
|
||||
|
||||
3. make install
|
||||
|
||||
This sequence will put the framework in ``/Library/Framework/Python.framework``,
|
||||
This sequence will put the framework in ``/Library/Frameworks/Python.framework``,
|
||||
the applications in ``/Applications/Python <VERSION>`` and the unix tools in
|
||||
``/usr/local/bin``.
|
||||
|
||||
@@ -283,7 +283,7 @@ Installing in another place, for instance ``$HOME/Library/Frameworks`` if you
|
||||
have no admin privileges on your machine, is possible. This can be accomplished
|
||||
by configuring with ``--enable-framework=$HOME/Library/Frameworks``.
|
||||
The other two directories will then also be installed in your home directory,
|
||||
at ``$HOME/Applications/Python-<VERSION>`` and ``$HOME/bin``.
|
||||
at ``$HOME/Applications/Python <VERSION>`` and ``$HOME/bin``.
|
||||
|
||||
If you want to install some part, but not all, read the main Makefile. The
|
||||
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
|
||||
installer package will create links to the documentation for use by IDLE,
|
||||
pydoc, shell users, and Finder user.
|
||||
|
||||
The script will build a universal binary so you'll therefore have to run this
|
||||
script on macOS 10.4 or later and with Xcode 2.1 or later installed.
|
||||
However, the Python build process itself has several build dependencies not
|
||||
available out of the box with macOS 10.4 so you may have to install
|
||||
additional software beyond what is provided with Xcode 2.
|
||||
The script will build a universal binary. See ``Mac/BuildScript/README.rst``
|
||||
for the recommended build environment.
|
||||
It should be possible to use SDKs and/or older
|
||||
versions of Xcode to build installers that are compatible with older systems
|
||||
on a newer system but this may not be completely foolproof so the resulting
|
||||
|
||||
Reference in new issue
Block a user