MCPcopy Create free account
hub / github.com/numpy/numpy / add_system_root

Function add_system_root

numpy/distutils/system_info.py:293–303  ·  view source on GitHub ↗

Add a package manager root to the include directories

(library_root)

Source from the content-addressed store, hash-verified

291 _include_dirs = [d.replace('/', os.sep) for d in _include_dirs]
292 _lib_dirs = [d.replace('/', os.sep) for d in _lib_dirs]
293 def add_system_root(library_root):
294 """Add a package manager root to the include directories"""
295 global default_lib_dirs
296 global default_include_dirs
297
298 library_root = os.path.normpath(library_root)
299
300 default_lib_dirs.extend(
301 os.path.join(library_root, d) for d in _lib_dirs)
302 default_include_dirs.extend(
303 os.path.join(library_root, d) for d in _include_dirs)
304
305 # VCpkg is the de-facto package manager on windows for C/C++
306 # libraries. If it is on the PATH, then we append its paths here.

Callers 1

system_info.pyFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected