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

Function get_cmd

numpy/distutils/misc_util.py:2131–2141  ·  view source on GitHub ↗
(cmdname, _cache={})

Source from the content-addressed store, hash-verified

2129
2130
2131def get_cmd(cmdname, _cache={}):
2132 if cmdname not in _cache:
2133 import distutils.core
2134 dist = distutils.core._setup_distribution
2135 if dist is None:
2136 from distutils.errors import DistutilsInternalError
2137 raise DistutilsInternalError(
2138 'setup distribution instance not initialized')
2139 cmd = dist.get_command_obj(cmdname)
2140 _cache[cmdname] = cmd
2141 return _cache[cmdname]
2142
2143def get_numpy_include_dirs():
2144 # numpy_include_dirs are set by numpy/core/setup.py, otherwise []

Callers 4

build_npy_pkg_configMethod · 0.90
runMethod · 0.90
get_config_cmdMethod · 0.85
get_build_temp_dirMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected