(self,
default_lib_dirs=default_lib_dirs,
default_include_dirs=default_include_dirs,
)
| 721 | notfounderror = NotFoundError |
| 722 | |
| 723 | def __init__(self, |
| 724 | default_lib_dirs=default_lib_dirs, |
| 725 | default_include_dirs=default_include_dirs, |
| 726 | ): |
| 727 | self.__class__.info = {} |
| 728 | self.local_prefixes = [] |
| 729 | defaults = {'library_dirs': os.pathsep.join(default_lib_dirs), |
| 730 | 'include_dirs': os.pathsep.join(default_include_dirs), |
| 731 | 'runtime_library_dirs': os.pathsep.join(default_runtime_dirs), |
| 732 | 'rpath': '', |
| 733 | 'src_dirs': os.pathsep.join(default_src_dirs), |
| 734 | 'search_static_first': str(self.search_static_first), |
| 735 | 'extra_compile_args': '', 'extra_link_args': ''} |
| 736 | self.cp = ConfigParser(defaults) |
| 737 | self.files = [] |
| 738 | self.files.extend(get_standard_file('.numpy-site.cfg')) |
| 739 | self.files.extend(get_standard_file('site.cfg')) |
| 740 | self.parse_config_files() |
| 741 | |
| 742 | if self.section is not None: |
| 743 | self.search_static_first = self.cp.getboolean( |
| 744 | self.section, 'search_static_first') |
| 745 | assert isinstance(self.search_static_first, int) |
| 746 | |
| 747 | def parse_config_files(self): |
| 748 | self.cp.read(self.files) |
nothing calls this directly
no test coverage detected