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

Function _get_flags

numpy/f2py/_backends/_meson.py:233–244  ·  view source on GitHub ↗
(fc_flags)

Source from the content-addressed store, hash-verified

231 shutil.copy(obj, bdir)
232
233def _get_flags(fc_flags):
234 flag_values = []
235 flag_pattern = re.compile(r"--f(77|90)flags=(.*)")
236 for flag in fc_flags:
237 match_result = flag_pattern.match(flag)
238 if match_result:
239 values = match_result.group(2).strip().split()
240 values = [val.strip("'\"") for val in values]
241 flag_values.extend(values)
242 # Hacky way to preserve order of flags
243 unique_flags = list(dict.fromkeys(flag_values))
244 return unique_flags

Callers 1

__init__Method · 0.85

Calls 3

splitMethod · 0.80
stripMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…