(pkgname, cli_args)
| 326 | |
| 327 | |
| 328 | def _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 | |
| 339 | def get_libraries(): |
no test coverage detected