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

Function _read_config

numpy/distutils/npy_pkg_config.py:286–302  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

284
285def _read_config_imp(filenames, dirs=None):
286 def _read_config(f):
287 meta, vars, sections, reqs = parse_config(f, dirs)
288 # recursively add sections and variables of required libraries
289 for rname, rvalue in reqs.items():
290 nmeta, nvars, nsections, nreqs = _read_config(pkg_to_filename(rvalue))
291
292 # Update var dict for variables not in 'top' config file
293 for k, v in nvars.items():
294 if not k in vars:
295 vars[k] = v
296
297 # Update sec dict
298 for oname, ovalue in nsections[rname].items():
299 if ovalue:
300 sections[rname][oname] += ' %s' % ovalue
301
302 return meta, vars, sections, reqs
303
304 meta, vars, sections, reqs = _read_config(filenames)
305

Callers 1

_read_config_impFunction · 0.85

Calls 2

parse_configFunction · 0.85
pkg_to_filenameFunction · 0.85

Tested by

no test coverage detected