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

Function _find_swig_target

numpy/distutils/command/build_src.py:747–752  ·  view source on GitHub ↗
(target_dir, name)

Source from the content-addressed store, hash-verified

745 return name
746
747def _find_swig_target(target_dir, name):
748 for ext in ['.cpp', '.c']:
749 target = os.path.join(target_dir, '%s_wrap%s' % (name, ext))
750 if os.path.isfile(target):
751 break
752 return target
753
754#### F2PY related auxiliary functions ####
755

Callers 1

swig_sourcesMethod · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected