MCPcopy Create free account
hub / github.com/apache/arrow / _read_pkg_config_variable

Function _read_pkg_config_variable

python/pyarrow/__init__.py:328–336  ·  view source on GitHub ↗
(pkgname, cli_args)

Source from the content-addressed store, hash-verified

326
327
328def _read_pkg_config_variable(pkgname, cli_args):
329 import subprocess
330 cmd = [_get_pkg_config_executable(), pkgname] + cli_args
331 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
332 stderr=subprocess.PIPE)
333 out, err = proc.communicate()
334 if proc.returncode != 0:
335 raise RuntimeError("pkg-config failed: " + err.decode('utf8'))
336 return out.rstrip().decode('utf8')
337
338
339def get_libraries():

Callers 1

get_library_dirsFunction · 0.85

Calls 2

decodeMethod · 0.45

Tested by

no test coverage detected