[gtk-osx: 15/48] Add the virtenv lib/pkgconfig to PKG_CONFIG_PATH.



commit f525c1196e370f08d1634d5187306fa92c9364e2
Author: John Ralls <jralls ceridwen us>
Date:   Fri Nov 9 16:53:02 2018 +0900

    Add the virtenv lib/pkgconfig to PKG_CONFIG_PATH.

 jhbuildrc-gtk-osx | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index f36a56d..985356a 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -537,6 +537,10 @@ if not "python" in modules and not 'python3' in modules:
                                        _python_ver, 'site-packages')
     append_autogenargs('libxml2',
                        '--with-python-install-dir=' + _python_install_path)
+    _pyconfig = os.path.join(os.environ['PYENV_ROOT'], 'shims', 'python-config')
+    _py_prefix = _popen(_pyconfig + ' --prefix')
+    environ_append('PKG_CONFIG_PATH',
+                   os.path.join(_py_prefix, 'lib', 'pkgconfig'))
 
 # Unset this so we don't mess with the check for not starting
 # recursively.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]