MCPcopy Create free account
hub / github.com/catboost/catboost / find_library

Function find_library

library/python/symbols/module/__init__.py:23–48  ·  view source on GitHub ↗
(name, find_next)

Source from the content-addressed store, hash-verified

21
22
23def find_library(name, find_next):
24 subst = {
25 'rt': 'c',
26 'pthread': 'c',
27 'm': 'c',
28 }
29
30 builtin = builtin_symbols.get(subst.get(name, name))
31
32 if builtin:
33 return {
34 'name': name,
35 'symbols': builtin,
36 }
37
38 if 'musl' in caps:
39 return None
40
41 try:
42 subprocess.Popen.__patched__
43
44 return None
45 except Exception:
46 pass
47
48 return find_next(name)

Callers 1

_sysctlbyname_uintFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected