summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-06-08 16:21:09 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-06-08 16:21:09 +0200
commit4a61efe641c9bf987a62bff729334c7cce3f141b (patch)
tree719c4fe56feebe3f428e47693e70a37c8e5e71f7
parentf4a39457de662376b5f9da300a06e2dff91b1aeb (diff)
downloadspack-4a61efe641c9bf987a62bff729334c7cce3f141b.tar.gz
spack-4a61efe641c9bf987a62bff729334c7cce3f141b.tar.bz2
spack-4a61efe641c9bf987a62bff729334c7cce3f141b.tar.xz
spack-4a61efe641c9bf987a62bff729334c7cce3f141b.zip
lmod : fixed issues with LUA_PATH during installation
-rw-r--r--var/spack/repos/builtin/packages/lmod/package.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/lmod/package.py b/var/spack/repos/builtin/packages/lmod/package.py
index 9084c34881..e50c2cfc4b 100644
--- a/var/spack/repos/builtin/packages/lmod/package.py
+++ b/var/spack/repos/builtin/packages/lmod/package.py
@@ -23,7 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
-import os
+
class Lmod(Package):
"""
@@ -38,13 +38,19 @@ class Lmod(Package):
url = 'https://github.com/TACC/Lmod/archive/6.4.1.tar.gz'
version('6.4.1', '7978ba777c8aa41a4d8c05fec5f780f4')
- version('6.3.7', '0fa4d5a24c41cae03776f781aa2dedc1', preferred=True)
+ version('6.3.7', '0fa4d5a24c41cae03776f781aa2dedc1')
version('6.0.1', '91abf52fe5033bd419ffe2842ebe7af9')
depends_on('lua@5.2:')
depends_on('lua-luaposix')
depends_on('lua-luafilesystem')
+ parallel = False
+
+ def setup_environment(self, spack_env, run_env):
+ stage_lua_path = join_path(self.stage.path, 'Lmod-{version}', 'src', '?.lua')
+ spack_env.append_path('LUA_PATH', stage_lua_path.format(version=self.version), separator=';')
+
def install(self, spec, prefix):
configure('--prefix=%s' % prefix)
make('install')