.. _dune_python_install_package:

dune_python_install_package
===========================

.. cmake_function:: dune_python_install_package

   .. cmake_param:: PATH
      :required:
      :single:

      Relative path to the given python package source code.

   .. cmake_param:: ADDITIONAL_PIP_PARAMS
      :multi:
      :argname: param

      Parameters to add to any :code:`pip install` call (appended).

   This function installs the python package located at the given path. It

   * installs it to the location specified with :ref:`DUNE_PYTHON_INSTALL_LOCATION` during
     :code:`make install_python` and during :code:`make install`.
   * installs a wheel into the Dune wheelhouse during :code:`make install`.
     This is necessary for mixing installed and non-installed Dune modules.

   The package at the given location is expected to be a pip-installable package.

