summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-06-28 12:57:19 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-06-28 12:57:19 +0200
commit48888b0f8efb59e55a5b265b59fc9484ad399b5d (patch)
tree85c4a7a88853bc5019beb7b6dc7b1a88323f2f1c /var
parent793c9f5546072544746592c038182921cce14ccb (diff)
downloadspack-48888b0f8efb59e55a5b265b59fc9484ad399b5d.tar.gz
spack-48888b0f8efb59e55a5b265b59fc9484ad399b5d.tar.bz2
spack-48888b0f8efb59e55a5b265b59fc9484ad399b5d.tar.xz
spack-48888b0f8efb59e55a5b265b59fc9484ad399b5d.zip
swift : setting environment variables in the right place
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/swiftsim/package.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/swiftsim/package.py b/var/spack/repos/builtin/packages/swiftsim/package.py
index e4607d9146..cc0ff0e452 100644
--- a/var/spack/repos/builtin/packages/swiftsim/package.py
+++ b/var/spack/repos/builtin/packages/swiftsim/package.py
@@ -28,13 +28,6 @@ from spack import *
import spack.environment
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):
"""
@@ -61,6 +54,12 @@ class Swiftsim(Package):
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):
# Generate configure from configure.ac
# and Makefile.am