Instructions for Mercalli
On mercalli @INGV Spack is not installed, and the user has to do it locally in his/her own area.
Moreover, since Python 2.7 is in use by default, while a version >3.6 is required by Spack, a preliminary step must be executed to force Spack to use Python >3.6, in order to avoid getting this error message Spack requires Python 3.6 or higher You are running spack with Python 2.7.5.
-
add the following line to your
~/.bashrcfile: -
in your home directory, run the following commands to download and configure Spack:
-
create and activate the environment with the following commands:
Note that the
-doption will create the environment in the current folder (typically thehomefolder but can be a dedicated one), while omitting it will result in creating the environment in the default folder (~/spack/var/spack/environments/). The-pis just a flag to visualize the environment is active. -
add Python and py-pip to the environment and install them
In this way, the (last) preferred version of Python will be installed. You can do
spack findto see which packages have been installed. -
install Python packages needed to run the workflow in the environment
The file
requirements.txtis provided with the workflow.
The environment is ready. For any new session, of course, it must be activated by the command
The same line should be inserted within the file load_env.source (see the installation instructions).