Check if Python development headers are installed (needed for pyo3).
()
| 311 | |
| 312 | |
| 313 | def _need_python_dev(): |
| 314 | """Check if Python development headers are installed (needed for pyo3).""" |
| 315 | import sysconfig |
| 316 | inc = sysconfig.get_path("include") |
| 317 | if inc and os.path.isfile(os.path.join(inc, "Python.h")): |
| 318 | return False |
| 319 | return True |
| 320 | |
| 321 | |
| 322 | def _torch_arch_token(capability: str) -> str: |
no outgoing calls
no test coverage detected