summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rothe <markusr815@gmail.com>2016-06-27 17:55:28 +0200
committerCole Robinson <crobinso@redhat.com>2016-07-28 15:58:34 -0400
commitbdfa319eac9aabc4befc206ea4ee65b48a251a77 (patch)
treed4966c73d8831948537535c0c98e0cb564e30203
parent8a42cdd043561ebce34fd41660d6c2966e0d659b (diff)
downloadlibvirt-python-bdfa319eac9aabc4befc206ea4ee65b48a251a77.tar.gz
allow pkg-config binary to be set by envv2.1.0
https://bugzilla.redhat.com/show_bug.cgi?id=1350523
-rwxr-xr-xsetup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 936aeb4..647529b 100755
--- a/setup.py
+++ b/setup.py
@@ -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")