telepathy-idle: Meson: Use Python 3
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Nov 1 17:23:33 UTC 2020
Module: telepathy-idle
Branch: master
Commit: 3a1ce69b1a316f9547ff2e49a65cf8f501df279b
URL: http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=3a1ce69b1a316f9547ff2e49a65cf8f501df279b
Author: Alexander Akulich <akulichalexander at gmail.com>
Date: Sun Nov 1 15:06:59 2020 +0300
Meson: Use Python 3
---
extensions/_gen/meson.build | 2 +-
meson.build | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/extensions/_gen/meson.build b/extensions/_gen/meson.build
index 9f40cdd..c5d3fbe 100644
--- a/extensions/_gen/meson.build
+++ b/extensions/_gen/meson.build
@@ -23,7 +23,7 @@ gen_svc = custom_target(
'svc.c',
],
command: [
- python2,
+ python,
'@INPUT0@',
'--filename=extensions/_gen/svc',
'--signal-marshal-prefix=_idle_ext',
diff --git a/meson.build b/meson.build
index 09f71b6..b2b1b68 100644
--- a/meson.build
+++ b/meson.build
@@ -38,15 +38,15 @@ idle_deps = [
]
xsltproc = find_program('xsltproc')
-python2 = import('python').find_installation('python2')
+python = import('python').find_installation('python3')
# check for a version of python that can run the twisted tests
if get_option('twisted_tests')
- if run_command(python2, '-c', '''from sys import version_info; import dbus, dbus.mainloop.glib; raise SystemExit(version_info < (2, 5, 0, 'final', 0))''').returncode() != 0 or run_command(python2, '-c', '''import twisted.words.protocols.irc, twisted.internet.reactor''').returncode() != 0
+ if run_command(python, '-c', '''from sys import version_info; import dbus, dbus.mainloop.glib; raise SystemExit(version_info < (2, 5, 0, 'final', 0))''').returncode() != 0 or run_command(python, '-c', '''import twisted.words.protocols.irc, twisted.internet.reactor''').returncode() != 0
error('Missing twisted IRC support')
endif
- test_python = python2.path()
+ test_python = python.path()
endif
# Directories
More information about the telepathy-commits
mailing list