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

Function _read_pkg_config_variable

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

Source from the content-addressed store, hash-verified

336
337
338def _read_pkg_config_variable(pkgname, cli_args):
339 import subprocess
340 cmd = [_get_pkg_config_executable(), pkgname] + cli_args
341 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
342 stderr=subprocess.PIPE)
343 out, err = proc.communicate()
344 if proc.returncode != 0:
345 raise RuntimeError("pkg-config failed: " + err.decode('utf8'))
346 return out.rstrip().decode('utf8')
347
348
349def get_libraries():

Callers 1

get_library_dirsFunction · 0.85

Calls 2

decodeMethod · 0.45

Tested by

no test coverage detected