Skip to content
Snippets Groups Projects
Commit 797a2de2 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Look for a fully-featured version of Python


We can use this to run tests that involve third-party modules like gi,
while continuing to run most tests with python3.5 preferentially.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2e2b1a43
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,15 @@ else ...@@ -46,6 +46,15 @@ else
python = find_program(get_option('python'), required : true) python = find_program(get_option('python'), required : true)
endif endif
if get_option('fully_featured_python') == ''
full_python = find_program('python3', required : false)
else
full_python = find_program(
get_option('fully_featured_python'),
required : false,
)
endif
version = get_option('version') version = get_option('version')
if version == 'auto' if version == 'auto'
git_version_gen = run_command( git_version_gen = run_command(
......
option('man', type : 'boolean', value : false, description : 'enable man pages') option('man', type : 'boolean', value : false, description : 'enable man pages')
option('python', type : 'string', value : '') option('python', type : 'string', value : '')
option('fully_featured_python', type : 'string', value : '')
option('srcdir', type : 'string', value : '') option('srcdir', type : 'string', value : '')
option('test_containers_dir', type : 'string', value : '') option('test_containers_dir', type : 'string', value : '')
option('version', type : 'string', value : 'auto') option('version', type : 'string', value : 'auto')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment