Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.27 KB

spack-develop.md

File metadata and controls

50 lines (41 loc) · 1.27 KB

Developing Hubcast with Spack (Recommended)

Prerequisites

You'll need to install Spack if you haven't already. You can clone Spack from GitHub by running the following,

$ git clone -c feature.manyFiles=true https://github.com/spack/spack.git
$ cd spack/

Next we'll need to load Spack into our shell. (Add one of the following lines -- prepended by the directory you cloned spack into -- to your .zshrc, .bashrc, or equivalent to make it permenent.)

# For bash/zsh/sh
$ . spack/share/spack/setup-env.sh

# For tcsh/csh
$ source spack/share/spack/setup-env.csh

# For fish
$ . spack/share/spack/setup-env.fish

Activating the Development Environment

Activate the Spack environment by entering the following,

$ cd path/to/hubcast
$ spack env activate -d .

Tip

If you've got direnv installed on your system you can run direnv allow to automatically load the spack environment when you cd into the repository in the future.

Installing the Development Environment

Install Hubcast's development dependencies with Spack by running the following,

$ spack install

Upgrading the Development Environment

To update your Spack environment run,

$ spack concretize --force --fresh
$ spack install