@@ -12,28 +12,29 @@ repository:
12
12
* `Python 3.9 <https://github.com/beeware/Python-Apple-support/tree/3.9 >`__
13
13
* `Python 3.11 <https://github.com/beeware/Python-Apple-support/tree/3.11 >`__
14
14
15
- It works by downloading, patching, and building a fat binary of Python and
16
- selected pre-requisites, and packaging them as static libraries that can be
17
- incorporated into an XCode project. The binary modules in the Python standard
18
- library are statically compiled, but are distribted as ``.so `` objects that
19
- can be dynamically loaded at runtime.
15
+ It works by downloading, patching, and building a fat binary of Python and selected
16
+ pre-requisites, and packaging them as static libraries that can be incorporated into an
17
+ XCode project. The binary modules in the Python standard library are statically
18
+ compiled, but are distributed as objects that can be dynamically loaded at runtime.
20
19
21
20
It exposes *almost * all the modules in the Python standard library except for:
22
- * dbm.gnu
23
- * tkinter
24
- * readline
25
- * nis (Deprecated by PEP594)
26
- * ossaudiodev (Deprecated by PEP594)
27
- * spwd (Deprecated by PEP594)
21
+
22
+ * ``dbm.gnu ``
23
+ * ``tkinter ``
24
+ * ``readline ``
25
+ * ``nis `` (Deprecated by PEP594)
26
+ * ``ossaudiodev `` (Deprecated by PEP594)
27
+ * ``spwd `` (Deprecated by PEP594)
28
28
29
29
The following standard library modules are available on macOS, but not the other
30
30
Apple platforms:
31
- * curses
32
- * grp
33
- * multiprocessing
34
- * posixshmem
35
- * posixsubprocess
36
- * syslog
31
+
32
+ * ``curses ``
33
+ * ``grp ``
34
+ * ``multiprocessing ``
35
+ * ``posixshmem ``
36
+ * ``posixsubprocess ``
37
+ * ``syslog ``
37
38
38
39
The binaries support x86_64 and arm64 for macOS; arm64 for iOS and appleTV
39
40
devices; and arm64_32 for watchOS. It also supports device simulators on both
@@ -60,7 +61,7 @@ Quickstart
60
61
61
62
The easist way to use these packages is by creating a project with `Briefcase
62
63
<https://github.com/beeware/briefcase> `__. Briefcase will download pre-compiled
63
- versions of these support packages, and add them to an XCode project (or
64
+ versions of these support packages, and add them to an Xcode project (or
64
65
pre-build stub application, in the case of macOS).
65
66
66
67
Pre-built versions of the frameworks can be downloaded from the `Github releases page
@@ -69,17 +70,17 @@ Pre-built versions of the frameworks can be downloaded from the `Github releases
69
70
Alternatively, to build the frameworks on your own, download/clone this
70
71
repository, and then in the root directory, and run:
71
72
72
- * `make ` (or `make all `) to build everything.
73
- * `make macOS ` to build everything for macOS.
74
- * `make iOS ` to build everything for iOS.
75
- * `make tvOS ` to build everything for tvOS.
76
- * `make watchOS ` to build everything for watchOS.
73
+ * `` make `` (or `` make all ` `) to build everything.
74
+ * `` make macOS ` ` to build everything for macOS.
75
+ * `` make iOS ` ` to build everything for iOS.
76
+ * `` make tvOS ` ` to build everything for tvOS.
77
+ * `` make watchOS ` ` to build everything for watchOS.
77
78
78
79
This should:
79
80
80
81
1. Download the original source packages
81
82
2. Patch them as required for compatibility with the selected OS
82
- 3. Build the packages as XCode -compatible XCFrameworks.
83
+ 3. Build the packages as Xcode -compatible XCFrameworks.
83
84
84
85
The resulting support packages will be packaged as a ``.tar.gz `` file
85
86
in the ``dist `` folder.
@@ -88,7 +89,7 @@ Each support package contains:
88
89
89
90
* ``VERSIONS ``, a text file describing the specific versions of code used to
90
91
build the support package;
91
- * ``Python.xcframework ``, a multi-architecture build of libPython3.10.a
92
+ * ``Python.xcframework ``, a multi-architecture build of the Python runtime library
92
93
* ``python-stdlib ``, the code and binary modules comprising the Python standard
93
94
library. On iOS, tvOS and watchOS, there are 2 copies of every binary module -
94
95
one for physical devices, and one for the simulator. The simulator binaries
@@ -119,10 +120,10 @@ project <https://github.com/freakboy3742/chaquopy>`__.
119
120
120
121
To build these wheels, run:
121
122
122
- * `make wheels ` to make all wheels for all mobile platforms
123
- * `make wheels-iOS ` to build all the iOS wheels
124
- * `make wheels-tvOS ` to build all the tvOS wheels
125
- * `make wheels-watchOS ` to build all the watchOS wheels
123
+ * `` make wheels ` ` to make all wheels for all mobile platforms
124
+ * `` make wheels-iOS ` ` to build all the iOS wheels
125
+ * `` make wheels-tvOS ` ` to build all the tvOS wheels
126
+ * `` make wheels-watchOS ` ` to build all the watchOS wheels
126
127
127
128
Historical support
128
129
------------------
0 commit comments