Skip to content
Snippets Groups Projects
Commit d96ea5ba authored by Patrick Gartung's avatar Patrick Gartung
Browse files

add modules package and have setup script find it if built

parent e0fdb341
No related branches found
No related tags found
No related merge requests found
...@@ -176,3 +176,13 @@ _spack_pathadd PATH "${_sp_prefix%/}/bin" ...@@ -176,3 +176,13 @@ _spack_pathadd PATH "${_sp_prefix%/}/bin"
_sp_sys_type=$(spack-python -c 'print(spack.architecture.sys_type())') _sp_sys_type=$(spack-python -c 'print(spack.architecture.sys_type())')
_spack_pathadd DK_NODE "${_sp_share_dir%/}/dotkit/$_sp_sys_type" _spack_pathadd DK_NODE "${_sp_share_dir%/}/dotkit/$_sp_sys_type"
_spack_pathadd MODULEPATH "${_sp_share_dir%/}/modules/$_sp_sys_type" _spack_pathadd MODULEPATH "${_sp_share_dir%/}/modules/$_sp_sys_type"
#
# Use spack built modules package if available
# for system that does not have it
#
_modules_install_path=$(command spack location -i modules)
if [ -n "$_modules_install_path" ] ; then
. $_modules_install_path/Modules/init/sh
fi
from spack import *
class Modules(Package):
""" The Environment Modules package provides for the dynamic modification of a user's environment via modulefiles. """
homepage = "http://modules.sf.net"
url = "http://downloads.sourceforge.net/project/modules/Modules/modules-3.2.10/modules-3.2.10.tar.gz"
version('3.2.10', '8b097fdcb90c514d7540bb55a3cb90fb')
depends_on("tcl")
def install(self, spec, prefix):
options = ['--prefix=%s' % prefix,
'--disable-debug',
'--disable-dependency-tracking',
'--disable-silent-rules',
'--disable-versioning',
'--datarootdir=%s' % prefix.share,
'CPPFLAGS=-DUSE_INTERP_ERRORLINE']
configure(*options)
make()
make("install")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment