Getting Started

Requirements

  • Python 3.10 or higher.

Note

Changed in version 3.0: Support for Python 3.5 is dropped.

Changed in version 4.10: Support for Python <= 3.9 is dropped.

Getting the Framework

ReFrame is available as modern Python package using pyproject.toml and it can be installed using different Python package managers.

uv

ReFrame can be installed using the uv package manager:

# Install standard ReFrame
uv tool install reframe-hpc

# Install with Graylog bindings
uv tool install 'reframe-hpc[graylog]'

# Install a dev release from Github
uv tool install git+https://github.com/reframe-hpc/reframe.git@VERSION_TAG

# Install a dev release with an extra
uv tool install 'reframe-hpc[analytics] @ git+https://github.com/reframe-hpc/reframe.git@VERSION_TAG'

PyPI

ReFrame is available as a PyPI package:

# Install standard ReFrame
pip install reframe-hpc

# Install with Graylog bindings
pip install 'reframe-hpc[graylog]'

# Install a dev release from Github
pip install git+https://github.com/reframe-hpc/reframe.git@VERSION_TAG

# Install a dev release with an extra
pip install 'reframe-hpc[analytics] @ git+https://github.com/reframe-hpc/reframe.git@VERSION_TAG'

From source

You can also install ReFrame from source by cloning the repository and running it as follows:

git clone https://github.com/reframe-hpc/reframe.git
cd reframe
uv run reframe --version

If you are contributing to ReFrame, you should also install the deppendencies for the unit tests and the documentation:

uv sync --group dev --group docs

# Run the unit tests
uv run ./test_reframe.py

# Build the documentation
uv run make -C docs

# View the documentation locally
cd docs/html && python -m http.server

Note

Added in version 3.1: The bootstrap script for ReFrame was added. For previous ReFrame versions you should install its requirements using pip install -r requirements.txt in a Python virtual environment.

Changed in version 4.5: ReFrame now supports multiarch builds and it will place all of its dependencies in an arch-specific directory under its prefix. Also, pip is no more required, as the bootstrap script will start a virtual environment without pip and will fetch a fresh pip, which will be used to install the dependencies.

Changed in version 4.10: ReFrame has become a pyproject.toml-based package. The bootstrap.sh is no more available. Users can now run uv run reframe directly.

Spack

ReFrame is available as a Spack package:

spack install reframe

There are the following variants available:

  • +docs: This will install the man pages of ReFrame.

  • +gelf: This will install the bindings for handling Graylog log messages.

Note

This is maintained by the Spack community and it may not be up to date with the latest ReFrame releases.

EasyBuild

ReFrame is available as an EasyBuild package:

eb ReFrame-VERSION.eb -r

This will install the man pages as well as the Graylog bindings.

Note

This is maintained by the EasyBuild community and it may not be up to date with the latest ReFrame releases.

Installation extras

When installing ReFrame you can opt-in for certain features. Using pip you can do this as follows:

# Opt-in for an extra
pip install 'reframe-hpc[extra]'

Quote the argument: the brackets are globbing characters in some shells and zsh, for one, will refuse the command with no matches found.

Check your preferred package manager on how it treats optional dependencies. An extra cannot be attached to a plain VCS URL, so a dev release that needs one is installed by naming the package and passing the URL as a direct reference, as shown above.

Here is a list of the available extras during installation:

Extra

Description

analytics

Install the dependencies of the analytics backend; required in order to enable it.

analytics-legacy

Install polars, which is needed only by the deprecated result storage; required in order to enable it.

graylog

Install Graylog bindings

Changed in version 4.11: polars is no longer installed by default and the no-analytics extra is removed. The deprecated result storage now requires the analytics-legacy extra.

Enabling auto-completion

Added in version 3.4.1.

You can enable auto-completion for ReFrame by sourcing the completion script for your shell. ReFrame stores the completions in the standard locations used by the different shells under its installation prefix. For bash completions, this is <install_prefix>/share/bash-completion/completions/reframe, whereas of for Fish shell, this is <install_prefix>/share/fish/vendor_completions.d/reframe.fish.

The installation prefix varies based on the method you used to install ReFrame. If you installed ReFrame using uv tool install, the installation prefix $UV_TOOL_DIR/reframe-hpc/share, where $UV_TOOL_DIR is by default ~/.local/share/uv/tools. If you installed ReFrame using pip install inside a virtual environment, the installation prefix is the $VIRTUAL_ENV/share.

Note

Changed in version 3.4.2: The shell completion scripts have been moved under share/completions/.

Changed in version 4.10: The shell completion scripts are now installed by default with ReFrame.

Where to Go from Here

If you are new to ReFrame, the place to start is the ReFrame Tutorial, which will guide you through all the concepts of the framework and get you up and running. If you are looking for a particular topic that is not covered in the tutorial, you can refer to the ReFrame How Tos or the Advanced Topics. For detailed reference guides for the command line, the configuration and the programming API, refer to the ReFrame Manuals.

Finally, if you are already a user of ReFrame 3.x version, you should read the What’s New in ReFrame 4.0 page, which explains what are the key new features of ReFrame 4.0 as well as all the breaking changes.