diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build index f758365f3..af53f2f04 100644 --- a/meson.build +++ b/meson.build @@ -1804,6 +1804,13 @@ python = import('python').find_installation('python3') # used for '#!/usr/bin/env <name>' python_name = 'python3' +python_version = python.language_version() +python_version_req = '>=3.4' +if not python_version.version_compare(python_version_req) + error('Requires Python @0@, @1@ found.'.format( + python_version_req, python_version)) +endif + # Determine which user environment-dependent files that we want to install have_bash = find_program('bash', required : false).found() # For completion scripts have_m4 = find_program('m4', required : false).found() # For m4 macros |