LbCondaWrappers#

LbCondaWrappers.call_in_conda(command, env_prefix, *, with_venv=None, texlive=None, extravars=None)[source]#

Replace the current process with a command in the conda environment

If the command is successfully executed this function will never return.

LbCondaWrappers.check_install_root_available(ins_root, print=False)[source]#
LbCondaWrappers.compute_conda_subdir()[source]#
LbCondaWrappers.conda_cmd(install_root, env_prefix)[source]#
LbCondaWrappers.get_conda_dir(install_root)[source]#
LbCondaWrappers.get_env_details(env_string)[source]#
LbCondaWrappers.get_env_prefix(env_string)[source]#
LbCondaWrappers.lb_conda()[source]#

Invoke a commands in the correct environment

LbCondaWrappers.lb_conda_dev()[source]#

Invoke a commands in the correct environment

LbCondaWrappers.list_environments(subdir=None)[source]#
LbCondaWrappers.list_textlive_versions()[source]#
LbCondaWrappers.safe_listdir(directory, timeout=60)[source]#

This is a “safe” list directory, for lazily-loaded File Systems like CVMFS. There’s by default a 60 seconds timeout.

Parameters:
  • directory (str) – directory to list

  • timeout (int) – optional timeout, in seconds. Defaults to 60.

LbCondaWrappers.write_run_script(fn, env_prefix, telemetry, *, with_venv=None, texlive=None)[source]#