Repository navigation
Commit 0d4e71f
committed
executorch: install torch at build time, disable PEP 517 isolation
CMake's find_package_torch_headers/get_torch_base_path resolves torch by
running `import torch` in the same interpreter running the build backend.
torch is a runtime dependency (setup.py), not declared in
[build-system].requires, so pip's isolated build venv never has it and
CMake configure fails with AttributeError: 'NoneType' object has no
attribute 'submodule_search_locations'.
Preinstall build-system.requires plus torch in CIBW_BEFORE_BUILD and
disable isolation via CIBW_BUILD_FRONTEND, mirroring the same pattern
already used in build-torchaudio.yml and build-torchcodec.yml.1 parent 53206a2 commit 0d4e71f
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
168 | 180 | | |
169 | 181 | | |
170 | 182 | | |
| |||
0 commit comments