setup_envs

pyrosetta.tests.distributed.cluster.setup_envs.detect_platform()

Detect system platform string used by GitHub Actions.

pyrosetta.tests.distributed.cluster.setup_envs.setup_pixi_environment(env_dir)

Create a fresh pixi environment containing ‘pyrosetta’ and ‘pyrosetta-distributed’ packages.

Note: this requires that pixi is an executable installed and on ${PATH}. This function: - detects the current Python version - detects the current platform (linux/mac/windows) - writes a compatible ‘pixi.toml’ file - runs pixi install to build a new pixi environment

pyrosetta.tests.distributed.cluster.setup_envs.setup_uv_environment(env_dir)

Create a fresh uv environment using the ‘pyrosetta-installer’ package.

Note: this requires that uv is an executable installed and on ${PATH}. This function: - detects the current Python version - adds ‘pyrosetta-installer’ via uv add … - runs the PyRosetta installer using uv run python -c …

pyrosetta.tests.distributed.cluster.setup_envs.setup_conda_environment(env_dir, env_manager='conda')

Create a fresh conda/mamba environment containing ‘pyrosetta’ and ‘pyrosetta-distributed’ packages.

Note: this requires that conda or mamba is an executable installed and on ${PATH}. This function: - detects the current Python version - detects the current platform (linux/mac/windows) - writes a temporary ‘environment.yml’ file - runs {env_manager} env create -f environment.yml … to build a new environment