aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-02-21 12:52:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-02-21 12:58:59 +0200
commite96359df703047716cf12f963f67369597e9b7e1 (patch)
tree40bfe23bef45e937b4464360d8afe260d9a6f47f
parenta179d07fd1635196ead57d2a3ce62d418a24f8a8 (diff)
downloadmeson-e96359df703047716cf12f963f67369597e9b7e1.zip
meson-e96359df703047716cf12f963f67369597e9b7e1.tar.gz
meson-e96359df703047716cf12f963f67369597e9b7e1.tar.bz2
Only support Python 3.
-rw-r--r--test cases/common/105 find program path/meson.build8
1 files changed, 3 insertions, 5 deletions
diff --git a/test cases/common/105 find program path/meson.build b/test cases/common/105 find program path/meson.build
index b21d659..2ece2bc 100644
--- a/test cases/common/105 find program path/meson.build
+++ b/test cases/common/105 find program path/meson.build
@@ -2,10 +2,8 @@ project('find program', 'c')
prog = find_program('program.py')
-# Use either Python3 or 2 to run this
-python = find_program('python3', required : false)
-if not python.found()
- python = find_program('python')
-endif
+# Python 3 is guaranteed to be available because Meson
+# is implemented in it.
+python = find_program('python3')
run_command(python, prog.path())