[gtk-osx] Pass the venv python as $PYTHON to pkg-config



commit c0cf176d5757d7c10345fe452121b7ad9bb78a10
Author: John Ralls <jralls ceridwen us>
Date:   Mon Aug 17 14:29:16 2020 -0700

    Pass the venv python as $PYTHON to pkg-config
    
    When python3 or meta-gtk-osx-python3 are in modules, because we
    haven't yet built python3 so the default $PYTHON doesn't work.

 jhbuildrc-gtk-osx | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index ce588a6..f618a2b 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -602,6 +602,7 @@ if not _ran_recursively and _gtk_osx_prompt_prefix:
 # virtenv one.
 if 'python3' in modules or 'meta-gtk-osx-python3' in modules:
     os.environ['PYTHON'] = os.path.join(prefix, 'bin', 'python3')
+    module_extra_env['pkg-config'] = {'PYTHON':sys.executable}
 else:
     _python_ver = sys.version_info.major * 10 + sys.version_info.minor
     _python_install_path = os.path.join(prefix, 'lib', _python_ver, 'site-packages')


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