diff options
author | Tom Scogland <tom.scogland@gmail.com> | 2016-06-12 17:01:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-12 17:01:41 -0700 |
commit | 1b28991e0ad7ad87babbac2402391313fb428399 (patch) | |
tree | a174ec119d2436298d0ba8fd4984ef42878718f0 /var/spack/repos/builtin/packages/lua/package.py | |
parent | bc038eb7c36bbc24133311c167d4457b39de4a8a (diff) | |
parent | 3737169450228643848572ba2605d9f20aba2039 (diff) | |
download | spack-1b28991e0ad7ad87babbac2402391313fb428399.tar.gz spack-1b28991e0ad7ad87babbac2402391313fb428399.tar.bz2 spack-1b28991e0ad7ad87babbac2402391313fb428399.tar.xz spack-1b28991e0ad7ad87babbac2402391313fb428399.zip |
Merge pull request #1026 from epfl-scitas/packages/lmod
lmod : updated package and dependencies
Diffstat (limited to 'var/spack/repos/builtin/packages/lua/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/lua/package.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index 170f90516a..8ce4a7b94d 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -57,7 +57,7 @@ class Lua(Package): placement='luarocks') def install(self, spec, prefix): - if spec.satisfies("arch=darwin-i686") or spec.satisfies("arch=darwin-x86_64"): + if spec.satisfies("arch=darwin-i686") or spec.satisfies("arch=darwin-x86_64"): # NOQA: ignore=E501 target = 'macosx' else: target = 'linux' @@ -105,6 +105,9 @@ class Lua(Package): spack_env.set('LUA_PATH', ';'.join(lua_patterns), separator=';') spack_env.set('LUA_CPATH', ';'.join(lua_cpatterns), separator=';') + # Add LUA to PATH for dependent packages + spack_env.prepend_path('PATH', self.prefix.bin) + # For run time environment set only the path for extension_spec and # prepend it to LUAPATH if extension_spec.package.extends(self.spec): @@ -153,5 +156,5 @@ class Lua(Package): """ # Lua extension builds can have lua and luarocks executable functions module.lua = Executable(join_path(self.spec.prefix.bin, 'lua')) - module.luarocks = Executable(join_path(self.spec.prefix.bin, - 'luarocks')) + module.luarocks = Executable( + join_path(self.spec.prefix.bin, 'luarocks')) |