diff options
author | Elizabeth F <rpf2116@columbia.edu> | 2016-04-01 15:16:28 -0400 |
---|---|---|
committer | citibeth <rpf2116@columbia.edu> | 2016-04-01 15:28:03 -0400 |
commit | cfd5e69b816eaca1a4d6d4467d5f1113fa0af407 (patch) | |
tree | 4587bdae5518160d7b1c372327507c9dfdd227ba /var | |
parent | f5a77d39580d215f8d4948b2cbe6c8d47d4fd514 (diff) | |
download | spack-cfd5e69b816eaca1a4d6d4467d5f1113fa0af407.tar.gz spack-cfd5e69b816eaca1a4d6d4467d5f1113fa0af407.tar.bz2 spack-cfd5e69b816eaca1a4d6d4467d5f1113fa0af407.tar.xz spack-cfd5e69b816eaca1a4d6d4467d5f1113fa0af407.zip |
Added Environment Modules package.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/environment-modules/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/environment-modules/package.py b/var/spack/repos/builtin/packages/environment-modules/package.py new file mode 100644 index 0000000000..df903fddf8 --- /dev/null +++ b/var/spack/repos/builtin/packages/environment-modules/package.py @@ -0,0 +1,27 @@ +from spack import * + + +class EnvironmentModules(Package): + """Environment Modules for HPC""" + + homepage = "https://sourceforge.net/p/modules/wiki/Home/" + url = "http://prdownloads.sourceforge.net/modules/modules-3.2.10.tar.gz" + + version('3.2.10', '8b097fdcb90c514d7540bb55a3cb90fb') + + # Dependencies: + depends_on('tcl') + + def install(self, spec, prefix): + # See: https://sourceforge.net/p/modules/bugs/62/ + CPPFLAGS = ['-DUSE_INTERP_ERRORLINE'] + config_args = [ + "--prefix=%s" % prefix, + "--with-tcl=%s" % join_path(spec['tcl'].prefix, 'lib'), # It looks for tclConfig.sh + 'CPPFLAGS=%s' % ' '.join(CPPFLAGS) + ] + + + configure(*config_args) + make() + make("install") |