MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / find_cpp_sources

Function find_cpp_sources

wrappers/Python/deprecated_setup.py:418–427  ·  view source on GitHub ↗
(root=os.path.join('..', '..', 'src'), extensions=['.cpp'], skip_files=None)

Source from the content-addressed store, hash-verified

416 # setup_kwargs['cmdclass'] = dict(build_ext=get_shared_ptr_setter(build_ext))
417
418 def find_cpp_sources(root=os.path.join('..', '..', 'src'), extensions=['.cpp'], skip_files=None):
419 file_listing = []
420 for path, dirs, files in os.walk(root):
421 for file in files:
422 n, ext = os.path.splitext(file)
423 fname = os.path.relpath(os.path.join(path, file))
424 if skip_files is not None and fname in skip_files: continue
425 if ext in extensions:
426 file_listing.append(fname)
427 return file_listing
428
429 # Set variables for C++ sources and include directories
430 sources = find_cpp_sources(root=os.path.join(CProot, 'src'), extensions=['.cpp'])

Callers 1

Calls 2

walkMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected