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

Function _get_directories

numpy/distutils/misc_util.py:573–580  ·  view source on GitHub ↗
(list_of_sources)

Source from the content-addressed store, hash-verified

571 return headers
572
573def _get_directories(list_of_sources):
574 # get unique directories from list of sources.
575 direcs = []
576 for f in list_of_sources:
577 d = os.path.split(f)
578 if d[0] != '' and not d[0] in direcs:
579 direcs.append(d[0])
580 return direcs
581
582def _commandline_dep_string(cc_args, extra_postargs, pp_opts):
583 """

Callers 1

get_dependenciesFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected