(self)
| 2884 | return [d for d in dirs if os.path.isdir(d)] |
| 2885 | |
| 2886 | def calc_info(self): |
| 2887 | src_dirs = self.get_src_dirs() |
| 2888 | src_dir = '' |
| 2889 | for d in src_dirs: |
| 2890 | if os.path.isfile(os.path.join(d, 'libs', 'python', 'src', |
| 2891 | 'module.cpp')): |
| 2892 | src_dir = d |
| 2893 | break |
| 2894 | if not src_dir: |
| 2895 | return |
| 2896 | py_incl_dirs = [sysconfig.get_path('include')] |
| 2897 | py_pincl_dir = sysconfig.get_path('platinclude') |
| 2898 | if py_pincl_dir not in py_incl_dirs: |
| 2899 | py_incl_dirs.append(py_pincl_dir) |
| 2900 | srcs_dir = os.path.join(src_dir, 'libs', 'python', 'src') |
| 2901 | bpl_srcs = glob(os.path.join(srcs_dir, '*.cpp')) |
| 2902 | bpl_srcs += glob(os.path.join(srcs_dir, '*', '*.cpp')) |
| 2903 | info = {'libraries': [('boost_python_src', |
| 2904 | {'include_dirs': [src_dir] + py_incl_dirs, |
| 2905 | 'sources':bpl_srcs} |
| 2906 | )], |
| 2907 | 'include_dirs': [src_dir], |
| 2908 | } |
| 2909 | if info: |
| 2910 | self.set_info(**info) |
| 2911 | return |
| 2912 | |
| 2913 | |
| 2914 | class agg2_info(system_info): |
nothing calls this directly
no test coverage detected