(pkgname, cli_args)
| 336 | |
| 337 | |
| 338 | def _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 | |
| 349 | def get_libraries(): |
no test coverage detected