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

Method get_libgcc_dir

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

Source from the content-addressed store, hash-verified

142 return opt
143
144 def get_libgcc_dir(self):
145 try:
146 output = subprocess.check_output(self.compiler_f77 +
147 ['-print-libgcc-file-name'])
148 except (OSError, subprocess.CalledProcessError):
149 pass
150 else:
151 output = filepath_from_subprocess_output(output)
152 return os.path.dirname(output)
153 return None
154
155 def get_libgfortran_dir(self):
156 if sys.platform[:5] == 'linux':

Callers 3

get_library_dirsMethod · 0.95
get_librariesMethod · 0.95
get_library_dirsMethod · 0.80

Calls 2

check_outputMethod · 0.45

Tested by

no test coverage detected