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

Method get_libraries

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

Source from the content-addressed store, hash-verified

196 return opt
197
198 def get_libraries(self):
199 opt = []
200 d = self.get_libgcc_dir()
201 if d is not None:
202 g2c = self.g2c + '-pic'
203 f = self.static_lib_format % (g2c, self.static_lib_extension)
204 if not os.path.isfile(os.path.join(d, f)):
205 g2c = self.g2c
206 else:
207 g2c = self.g2c
208
209 if g2c is not None:
210 opt.append(g2c)
211 c_compiler = self.c_compiler
212 if sys.platform == 'win32' and c_compiler and \
213 c_compiler.compiler_type == 'msvc':
214 opt.append('gcc')
215 if sys.platform == 'darwin':
216 opt.append('cc_dynamic')
217 return opt
218
219 def get_flags_debug(self):
220 return ['-g']

Callers 1

get_librariesMethod · 0.45

Calls 2

get_libgcc_dirMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected