Created attachment 1172977 [details] 0001-allow-pkg-config-binary-to-be-set-by-env.patch I would like to set the pkg-config binary using the PKG_CONFIG environment variable (as is common for cross compiling). The attached patch changes setup.py accordingly.
Thanks for the patch, I've forwarded it upstream: http://www.redhat.com/archives/libvir-list/2016-June/msg02131.html
Upstream now, will be in 2.1.0 commit bdfa319eac9aabc4befc206ea4ee65b48a251a77 Author: Markus Rothe <markusr815> Date: Mon Jun 27 17:55:28 2016 +0200 allow pkg-config binary to be set by env https://bugzilla.redhat.com/show_bug.cgi?id=1350523