(self, library_dirs, libraries)
| 2370 | self.set_info(**info) |
| 2371 | |
| 2372 | def check_msvc_gfortran_libs(self, library_dirs, libraries): |
| 2373 | # First, find the full path to each library directory |
| 2374 | library_paths = [] |
| 2375 | for library in libraries: |
| 2376 | for library_dir in library_dirs: |
| 2377 | # MinGW static ext will be .a |
| 2378 | fullpath = os.path.join(library_dir, library + '.a') |
| 2379 | if os.path.isfile(fullpath): |
| 2380 | library_paths.append(fullpath) |
| 2381 | break |
| 2382 | else: |
| 2383 | return None |
| 2384 | |
| 2385 | # Generate numpy.distutils virtual static library file |
| 2386 | basename = self.__class__.__name__ |
| 2387 | tmpdir = os.path.join(os.getcwd(), 'build', basename) |
| 2388 | if not os.path.isdir(tmpdir): |
| 2389 | os.makedirs(tmpdir) |
| 2390 | |
| 2391 | info = {'library_dirs': [tmpdir], |
| 2392 | 'libraries': [basename], |
| 2393 | 'language': 'f77'} |
| 2394 | |
| 2395 | fake_lib_file = os.path.join(tmpdir, basename + '.fobjects') |
| 2396 | fake_clib_file = os.path.join(tmpdir, basename + '.cobjects') |
| 2397 | with open(fake_lib_file, 'w') as f: |
| 2398 | f.write("\n".join(library_paths)) |
| 2399 | with open(fake_clib_file, 'w') as f: |
| 2400 | pass |
| 2401 | |
| 2402 | return info |
| 2403 | |
| 2404 | def check_symbols(self, info): |
| 2405 | res = False |
no test coverage detected