-
Notifications
You must be signed in to change notification settings - Fork 17
Setting up spack manager
Setting up spack-manager is relatively simple.
The first step is to pick a location where you'd like to keep spack-manager. Since there will be a lot of building and installing you should pick a location with a reasonable amount of storage.
Once you know where it will be stored simply recursively clone spack-manager:
git clone --recursive https://github.com/psakievich/spack-manager
You will also need to set the SPACK_MANAGER
environment variable so it points to this directory:
export SPACK_MANAGER=$(pwd)/spack-manager
Now source the start script to load all the Spack-Manager functions into your shell:
source $SPACK_MANAGER/start.sh
To start using Spack based features you need to run
spack-start
or you can use one of our quick-commands which will run spack-start
for you.
That's it! Now you can start using Spack-Manager.
# Suggested additions to bashrc
export SPACK_MANAGER=/path/to/your/install
source ${SPACK_MANAGER}/start.sh
Once you have those set you can just open a new shell and type spack-start
to activate spack-manager.
Another very useful function is quick-activate
which will run spack-start
and activate an environment for you at the same time.