diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2020-11-01 15:06:59 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2020-11-01 18:26:37 +0300 |
commit | 3a1ce69b1a316f9547ff2e49a65cf8f501df279b (patch) | |
tree | 7b5143eda3bec37fc65bdfd151691c471172d871 /meson.build | |
parent | a4b0667200ecb4ad5e9bc0cc579f04e35d68aeef (diff) | |
download | telepathy-idle-3a1ce69b1a316f9547ff2e49a65cf8f501df279b.tar.gz |
Meson: Use Python 3
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
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 |