Commit b5146c4
committed
fix(ios): re-enable _posixshmem so multiprocessing (resource_tracker) imports
build_ios.py already flips py_cv_module__multiprocessing=n/a -> yes for iOS
(SemLock/sockets build fine on Darwin; only spawning is unusable), but left
_posixshmem n/a. multiprocessing.resource_tracker does an UNCONDITIONAL
`import _posixshmem` on posix, so with _multiprocessing enabled but _posixshmem
absent, ANY transitive multiprocessing import fails on iOS with
`ModuleNotFoundError: No module named '_posixshmem'` — e.g. scikit-learn
(sklearn.utils.validation -> joblib -> multiprocessing) crashes at import.
shm_open/shm_unlink build fine on Darwin/iOS (the sandbox restricts USE, not the
build; nothing here uses shared memory), and upstream 3.13's official iOS support
ships _posixshmem. So flip py_cv_module__posixshmem=n/a -> yes the same way.
_posixsubprocess stays n/a (genuinely needs fork/exec).
Fixes the scikit-learn iOS mobile-test import crash (flet 0.86 recipe-tester).
Needs an iOS python-build rebuild + a new support run-id for CI to pick it up.1 parent dc76612 commit b5146c4
1 file changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
130 | 141 | | |
131 | 142 | | |
132 | | - | |
| 143 | + | |
| 144 | + | |
133 | 145 | | |
134 | 146 | | |
| 147 | + | |
135 | 148 | | |
136 | 149 | | |
137 | 150 | | |
| |||
0 commit comments