(cmdname, _cache={})
| 2129 | |
| 2130 | |
| 2131 | def 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 | |
| 2143 | def get_numpy_include_dirs(): |
| 2144 | # numpy_include_dirs are set by numpy/core/setup.py, otherwise [] |
no outgoing calls
no test coverage detected