swift : setting environment variables in the right place

This commit is contained in:
alalazo 2016-06-28 12:57:19 +02:00
parent 793c9f5546
commit 48888b0f8e

View file

@ -28,13 +28,6 @@
import spack.environment import spack.environment
import llnl.util.tty as tty import llnl.util.tty as tty
# Needed to be able to download from the Durham gitlab repository
tty.warn('Setting "GIT_SSL_NO_VERIFY=1"')
tty.warn('This is needed to clone SWIFT repository')
gitlab_env = spack.environment.EnvironmentModifications()
gitlab_env.set('GIT_SSL_NO_VERIFY', 1)
gitlab_env.apply_modifications()
class Swiftsim(Package): class Swiftsim(Package):
""" """
@ -61,6 +54,12 @@ class Swiftsim(Package):
depends_on('hdf5~mpi', when='~mpi') depends_on('hdf5~mpi', when='~mpi')
depends_on('hdf5+mpi', when='+mpi') depends_on('hdf5+mpi', when='+mpi')
def setup_environment(self, spack_env, run_env):
# Needed to be able to download from the Durham gitlab repository
tty.warn('Setting "GIT_SSL_NO_VERIFY=1"')
tty.warn('This is needed to clone SWIFT repository')
spack_env.set('GIT_SSL_NO_VERIFY', 1)
def install(self, spec, prefix): def install(self, spec, prefix):
# Generate configure from configure.ac # Generate configure from configure.ac
# and Makefile.am # and Makefile.am