diff options
| author | Markus Rothe <markusr815@gmail.com> | 2016-06-27 17:55:28 +0200 |
|---|---|---|
| committer | Cole Robinson <crobinso@redhat.com> | 2016-07-28 15:58:34 -0400 |
| commit | bdfa319eac9aabc4befc206ea4ee65b48a251a77 (patch) | |
| tree | d4966c73d8831948537535c0c98e0cb564e30203 | |
| parent | 8a42cdd043561ebce34fd41660d6c2966e0d659b (diff) | |
| download | libvirt-python-2.1.0.tar.gz | |
allow pkg-config binary to be set by envv2.1.0
https://bugzilla.redhat.com/show_bug.cgi?id=1350523
| -rwxr-xr-x | setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ _pkgcfg = -1 def get_pkgcfg(do_fail=True): global _pkgcfg if _pkgcfg == -1: + _pkgcfg = os.getenv('PKG_CONFIG') + if _pkgcfg is None: _pkgcfg = distutils.spawn.find_executable("pkg-config") if _pkgcfg is None and do_fail: raise Exception("pkg-config binary is required to compile libvirt-python") |
