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

Method get_library_dirs

numpy/distutils/fcompiler/gnu.py:346–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344 return flags
345
346 def get_library_dirs(self):
347 opt = GnuFCompiler.get_library_dirs(self)
348 if sys.platform == 'win32':
349 c_compiler = self.c_compiler
350 if c_compiler and c_compiler.compiler_type == "msvc":
351 target = self.get_target()
352 if target:
353 d = os.path.normpath(self.get_libgcc_dir())
354 root = os.path.join(d, *((os.pardir, ) * 4))
355 path = os.path.join(root, "lib")
356 mingwdir = os.path.normpath(path)
357 if os.path.exists(os.path.join(mingwdir, "libmingwex.a")):
358 opt.append(mingwdir)
359 # For Macports / Linux, libgfortran and libgcc are not co-located
360 lib_gfortran_dir = self.get_libgfortran_dir()
361 if lib_gfortran_dir:
362 opt.append(lib_gfortran_dir)
363 return opt
364
365 def get_libraries(self):
366 opt = GnuFCompiler.get_libraries(self)

Callers

nothing calls this directly

Calls 6

get_targetMethod · 0.95
get_libgcc_dirMethod · 0.80
get_libgfortran_dirMethod · 0.80
get_library_dirsMethod · 0.45
joinMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected