• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:with +full:- +full:python

1 Building a Python Mac OS X distribution
4 The ``build-install.py`` script creates Python distributions, including
5 certain third-party libraries as necessary. It builds a complete
6 framework-based Python out-of-tree, installs it in a funny place with
17 with a valid Apple Developer ID certificate using productsign.
18 Starting with macOS 10.15 Catalina, Gatekeeper now also requires
21 the binaries included in the package must be built with at least
22 the macOS 10.9 SDK, must now be signed with the codesign utility,
23 and executables must opt in to the hardened run time option with
25 available in the on-line Apple Developer Documentation and man pages.
27 A goal of PSF-provided (python.org) Python binaries for macOS is to
28 support a wide-range of operating system releases with one set of
29 binaries. Currently, the oldest release supported by python.org
30 binaries is macOS 10.9; it is still possible to build Python and
31 Python installers on older versions of macOS but we not regularly
34 Prior to Python 3.9.1, no Python releases supported building on a
37 Python C modules did not yet support runtime testing of macOS
39 and weak-linking). To build a Python that is to be used on a
40 range of macOS releases, it was necessary to always build on the
43 with the occasional exception such as the removal of 32-bit
45 PSF practice was to provide a "macOS 64-bit Intel installer" variant
48 Starting with 3.9.1, Python fully supports macOS "weaklinking",
49 meaning it is now possible to build a Python on a current macOS version
50 with a deployment target of an earlier macOS system. For 3.9.1 and
51 later systems, we provide a "macOS 64-bit universal2 installer"
52 variant, currently build on macOS 11 Big Sur with fat binaries
53 natively supporting both Apple Silicon (arm64) and Intel-64
56 The legacy "macOS 64-bit Intel installer" variant is expected to
59 build-installer.py requires Apple Developer tools, either from the
64 in the 10.6 support cycle.) build-installer.py also must be run
65 with recent versions of Python 3.x or 2.7. On older systems,
67 download and cache third-party source distributions used by
68 build-installer.py rather than have it attempt to automatically
73 /path/to/bootstrap/python3 build-installer.py \
74 --universal-archs=universal2 \
75 --dep-target=10.9
77 - builds the following third-party libraries
86 - uses system-supplied versions of third-party libraries
88 * readline module links with Apple BSD editline (libedit)
92 - recommended build environment:
100 2. legacy Intel 64-bit, x86_64, for OS X 10.9 (and later)::
102 /path/to/bootstrap/python3 build-installer.py \
103 --universal-archs=intel-64 \
104 --dep-target=10.9
106 - builds the following third-party libraries
115 - uses system-supplied versions of third-party libraries
117 * readline module links with Apple BSD editline (libedit)
121 - recommended build environment:
131 ---------------------
135 interfere with the build.
137 * It is safest to start each variant build with an empty source directory
138 populated with a fresh copy of the untarred source or a source repo.
141 Python being built::
143 sudo rm -rf /Library/Frameworks/Python.framework/Versions/n.n