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

Function _check_append_ext_library

numpy/distutils/core.py:201–216  ·  view source on GitHub ↗
(libraries, lib_name, build_info)

Source from the content-addressed store, hash-verified

199 libraries.append(item)
200
201def _check_append_ext_library(libraries, lib_name, build_info):
202 for item in libraries:
203 if is_sequence(item):
204 if item[0]==lib_name:
205 if item[1] is build_info:
206 return
207 warnings.warn("[3] libraries list contains %r with"
208 " different build_info" % (lib_name,),
209 stacklevel=2)
210 break
211 elif item==lib_name:
212 warnings.warn("[4] libraries list contains %r with"
213 " no build_info" % (lib_name,),
214 stacklevel=2)
215 break
216 libraries.append((lib_name, build_info))

Callers 1

setupFunction · 0.85

Calls 2

is_sequenceFunction · 0.90
warnMethod · 0.80

Tested by

no test coverage detected