Commit bdfa319e authored by Markus Rothe's avatar Markus Rothe Committed by Cole Robinson

allow pkg-config binary to be set by env

https://bugzilla.redhat.com/show_bug.cgi?id=1350523
parent 8a42cdd0
...@@ -28,6 +28,8 @@ _pkgcfg = -1 ...@@ -28,6 +28,8 @@ _pkgcfg = -1
def get_pkgcfg(do_fail=True): def get_pkgcfg(do_fail=True):
global _pkgcfg global _pkgcfg
if _pkgcfg == -1: if _pkgcfg == -1:
_pkgcfg = os.getenv('PKG_CONFIG')
if _pkgcfg is None:
_pkgcfg = distutils.spawn.find_executable("pkg-config") _pkgcfg = distutils.spawn.find_executable("pkg-config")
if _pkgcfg is None and do_fail: if _pkgcfg is None and do_fail:
raise Exception("pkg-config binary is required to compile libvirt-python") raise Exception("pkg-config binary is required to compile libvirt-python")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment