[gtk-osx] Add pygments as a dependency for setting python version.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Add pygments as a dependency for setting python version.
- Date: Sun, 24 Oct 2021 00:41:34 +0000 (UTC)
commit e8860ed2e97b192b22a595edc1e36f4c1e7d725c
Author: John Ralls <jralls ceridwen us>
Date: Sat Oct 23 17:33:32 2021 -0700
Add pygments as a dependency for setting python version.
Gtk-doc requires the python3 that builds it to have pygments available,
so we have a pygments module that depends on python3. It's a soft
dependency for gtk-doc so that one can build it with the virtenv python,
but if one needs python3, say to bundle the app, then specify pygments
to pull in python3. This change will recognize it and set the build
environment python accordingly.
jhbuildrc-gtk-osx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index 155d5078..9d880b15 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -611,8 +611,9 @@ if not _ran_recursively and _gtk_osx_prompt_prefix:
# Note that this will break if there's an undetected python3 build and
# the built python is a different major + minor version from the
# virtenv one.
-print('\n'.join(modules))
-if 'python3' in modules or 'meta-gtk-osx-python3' in modules:
+
+if ('python3' in modules or 'meta-gtk-osx-python3' in modules or
+ 'pygments' in modules):
os.environ['PYTHON'] = os.path.join(prefix, 'bin', 'python3')
module_extra_env['pkg-config'] = {'PYTHON':sys.executable}
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]