summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Akulich <akulichalexander@gmail.com>2020-11-01 15:06:59 +0300
committerAlexander Akulich <akulichalexander@gmail.com>2020-11-01 18:26:37 +0300
commit3a1ce69b1a316f9547ff2e49a65cf8f501df279b (patch)
tree7b5143eda3bec37fc65bdfd151691c471172d871
parenta4b0667200ecb4ad5e9bc0cc579f04e35d68aeef (diff)
downloadtelepathy-idle-3a1ce69b1a316f9547ff2e49a65cf8f501df279b.tar.gz
Meson: Use Python 3
-rw-r--r--extensions/_gen/meson.build2
-rw-r--r--meson.build6
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