cmaize.utilities/python

cmaize.utilities/python.find_python(_fp_py_exe _fp_version)

Wraps the process of finding Python and working out the version we found.

Parameters:
  • py_exe (path*) – Variable which will hold the path to the found Python interpreter.

  • version (str) – The version of the interpreter in the format major.minor.

cmaize.utilities/python.create_virtual_env(_cve_venv_dir _cve_py_exe _cve_dir _cve_name)

Wraps the process of creating a Python virtual environment

Parameters:
  • venv_dir (path*) – Variable to hold the path to the virtual environment

  • py_exe (path) – The Python executable to use to create the environment.

  • dir (path) – The directory in which to create the virtual environment

  • name (str) – The name for the virtual environment.