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

Function get_swig_modulename

numpy/distutils/command/build_src.py:737–745  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

735 return result
736
737def get_swig_modulename(source):
738 with open(source) as f:
739 name = None
740 for line in f:
741 m = _swig_module_name_match(line)
742 if m:
743 name = m.group('name')
744 break
745 return name
746
747def _find_swig_target(target_dir, name):
748 for ext in ['.cpp', '.c']:

Callers 1

swig_sourcesMethod · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected