dune_python_require_versionΒΆ

dune_python_require_version(
     version 
)
version
The minimum required version.

Error out, if the python interpreter found by cmake is older than the given version. Python2 and Python3 versions are not compared to each other, so you can call this macro multiple times to enforce minimal versions on a python2 and python3 interpreter independently.