.. _dune_python_require_version:

dune_python_require_version
===========================

.. cmake_function:: dune_python_require_version

   .. cmake_param:: version
      :positional:
      :single:
      :required:

      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.

