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

Function get_lib_source_files

numpy/distutils/misc_util.py:666–678  ·  view source on GitHub ↗
(lib)

Source from the content-addressed store, hash-verified

664 return scripts
665
666def get_lib_source_files(lib):
667 filenames = []
668 sources = lib[1].get('sources', [])
669 sources = [_m for _m in sources if is_string(_m)]
670 filenames.extend(sources)
671 filenames.extend(get_dependencies(sources))
672 depends = lib[1].get('depends', [])
673 for d in depends:
674 if is_local_src_dir(d):
675 filenames.extend(list(general_source_files(d)))
676 elif os.path.isfile(d):
677 filenames.append(d)
678 return filenames
679
680def get_shared_lib_extension(is_python_ext=False):
681 """Return the correct file extension for shared libraries.

Callers 1

get_source_filesMethod · 0.90

Calls 5

is_stringFunction · 0.85
get_dependenciesFunction · 0.85
is_local_src_dirFunction · 0.85
general_source_filesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected