Repository navigation
Commit 80fe693
committed
pythongh-156109: Allow static, non-framework iOS builds
A shared Python on iOS has to be packaged as a framework for App Store Connect
to accept it. A static libpython is linked into the app binary and loads nothing
at runtime, so the requirement does not apply to it, but configure refused that
configuration outright.
Refuse it only where it cannot work: a shared build with no framework. The
LINKFORSHARED and MODULE_DEPS_SHARED framework references are gated on
enable_framework, as the Darwin arm above already does, since a build without a
framework has nothing to link against. Passing no framework option at all still
errors, so a non-framework build stays an explicit opt-in.
A non-framework build cannot load extension modules at runtime either, so make
that configuration self-consistent, mirroring what WASI already does for the
same reason:
* force MODULE_BUILDTYPE=static for iOS builds without a framework, and error
out if MODULE_BUILDTYPE=shared was requested explicitly;
* mark the test modules that must be built as shared libraries
(see Modules/Setup.stdlib.in) as unavailable, so that the build no longer
requires --disable-test-modules.
Framework builds are unaffected. Document that this configuration supports
neither loadable extension modules nor binary wheels.
configure was edited by hand; it needs to be regenerated with the pinned
autoconf container before merging.1 parent e8158d1 commit 80fe693
5 files changed
Lines changed: 115 additions & 15 deletions
File tree
- Doc/using
- Misc/NEWS.d/next/Build
- Platforms/Apple/iOS
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1341 | 1357 | | |
1342 | 1358 | | |
1343 | 1359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
| |||
113 | 128 | | |
114 | 129 | | |
115 | 130 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | 582 | | |
584 | 583 | | |
585 | 584 | | |
| |||
689 | 688 | | |
690 | 689 | | |
691 | 690 | | |
692 | | - | |
| 691 | + | |
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
| |||
1689 | 1688 | | |
1690 | 1689 | | |
1691 | 1690 | | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1692 | 1695 | | |
1693 | 1696 | | |
1694 | 1697 | | |
| |||
3830 | 3833 | | |
3831 | 3834 | | |
3832 | 3835 | | |
3833 | | - | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
3834 | 3841 | | |
3835 | 3842 | | |
3836 | 3843 | | |
| |||
6755 | 6762 | | |
6756 | 6763 | | |
6757 | 6764 | | |
6758 | | - | |
6759 | | - | |
| 6765 | + | |
| 6766 | + | |
| 6767 | + | |
6760 | 6768 | | |
6761 | 6769 | | |
6762 | 6770 | | |
| |||
8300 | 8308 | | |
8301 | 8309 | | |
8302 | 8310 | | |
| 8311 | + | |
| 8312 | + | |
| 8313 | + | |
| 8314 | + | |
| 8315 | + | |
| 8316 | + | |
| 8317 | + | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
| 8321 | + | |
| 8322 | + | |
| 8323 | + | |
| 8324 | + | |
| 8325 | + | |
8303 | 8326 | | |
8304 | 8327 | | |
8305 | 8328 | | |
| |||
8378 | 8401 | | |
8379 | 8402 | | |
8380 | 8403 | | |
| 8404 | + | |
| 8405 | + | |
| 8406 | + | |
| 8407 | + | |
| 8408 | + | |
| 8409 | + | |
| 8410 | + | |
8381 | 8411 | | |
8382 | 8412 | | |
8383 | 8413 | | |
| |||
0 commit comments