Skip to content
Snippets Groups Projects
Commit cfd5e69b authored by Elizabeth Fischer's avatar Elizabeth Fischer
Browse files

Added Environment Modules package.

parent f5a77d39
Branches
Tags
No related merge requests found
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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment