swift : setting environment variables in the right place
This commit is contained in:
parent
793c9f5546
commit
48888b0f8e
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue