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

Function _check_append_library

numpy/distutils/core.py:172–199  ·  view source on GitHub ↗
(libraries, item)

Source from the content-addressed store, hash-verified

170 return old_setup(**new_attr)
171
172def _check_append_library(libraries, item):
173 for libitem in libraries:
174 if is_sequence(libitem):
175 if is_sequence(item):
176 if item[0]==libitem[0]:
177 if item[1] is libitem[1]:
178 return
179 warnings.warn("[0] libraries list contains %r with"
180 " different build_info" % (item[0],),
181 stacklevel=2)
182 break
183 else:
184 if item==libitem[0]:
185 warnings.warn("[1] libraries list contains %r with"
186 " no build_info" % (item[0],),
187 stacklevel=2)
188 break
189 else:
190 if is_sequence(item):
191 if item[0]==libitem:
192 warnings.warn("[2] libraries list contains %r with"
193 " no build_info" % (item[0],),
194 stacklevel=2)
195 break
196 else:
197 if item==libitem:
198 return
199 libraries.append(item)
200
201def _check_append_ext_library(libraries, lib_name, build_info):
202 for item in libraries:

Callers 1

setupFunction · 0.85

Calls 2

is_sequenceFunction · 0.90
warnMethod · 0.80

Tested by

no test coverage detected