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

Function general_source_files

numpy/distutils/misc_util.py:613–621  ·  view source on GitHub ↗
(top_path)

Source from the content-addressed store, hash-verified

611 return os.path.isdir(new_dir)
612
613def general_source_files(top_path):
614 pruned_directories = {'CVS':1, '.svn':1, 'build':1}
615 prune_file_pat = re.compile(r'(?:[~#]|\.py[co]|\.o)$')
616 for dirpath, dirnames, filenames in os.walk(top_path, topdown=True):
617 pruned = [ d for d in dirnames if d not in pruned_directories ]
618 dirnames[:] = pruned
619 for f in filenames:
620 if not prune_file_pat.search(f):
621 yield os.path.join(dirpath, f)
622
623def general_source_directories_files(top_path):
624 """Return a directory name relative to top_path and

Callers 3

get_ext_source_filesFunction · 0.85
get_lib_source_filesFunction · 0.85
get_data_filesFunction · 0.85

Calls 2

compileMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected