Skip to content

Commit

Permalink
meson: move version requirements to one place
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Oct 21, 2023
1 parent d91570d commit 80c0c7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ project(
)

cair_version_req = '>=1.15.10'
python_version_req = '>=3.8'

pymod = import('python')
python = pymod.find_installation(get_option('python'))

pyver = python.language_version()
if pyver.version_compare('< 3.8')
error('Requires Python >= 3.8')
if not pyver.version_compare(python_version_req)
error('Requires Python @0@'.format(python_version_req))
endif

fs = import('fs')
Expand Down

0 comments on commit 80c0c7a

Please sign in to comment.