MCPcopy Create free account
hub / github.com/brontoguana/krasis / _need_python_dev

Function _need_python_dev

python/krasis/setup.py:313–319  ·  view source on GitHub ↗

Check if Python development headers are installed (needed for pyo3).

()

Source from the content-addressed store, hash-verified

311
312
313def _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
322def _torch_arch_token(capability: str) -> str:

Callers 2

_show_required_packagesFunction · 0.85
_install_system_depsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected