summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Scogland <scogland1@llnl.gov>2016-05-14 17:49:06 -0700
committerTom Scogland <scogland1@llnl.gov>2016-05-14 17:49:06 -0700
commitf50439b990a46cdb06e133f2f11d59271f878c7c (patch)
tree1e52f3bba0f727d9ea33608765597979e271ede0
parentdf30182a10ec98212a85cb2c2a8209b5d837b001 (diff)
downloadspack-f50439b990a46cdb06e133f2f11d59271f878c7c.tar.gz
spack-f50439b990a46cdb06e133f2f11d59271f878c7c.tar.bz2
spack-f50439b990a46cdb06e133f2f11d59271f878c7c.tar.xz
spack-f50439b990a46cdb06e133f2f11d59271f878c7c.zip
appeasing the great vengeful flake8 gods
-rw-r--r--var/spack/repos/builtin/packages/lua/package.py41
1 files changed, 24 insertions, 17 deletions
diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py
index 11d66bc8f9..639b4dd15a 100644
--- a/var/spack/repos/builtin/packages/lua/package.py
+++ b/var/spack/repos/builtin/packages/lua/package.py
@@ -50,7 +50,8 @@ class Lua(Package):
resource(
name="luarocks",
- url="https://keplerproject.github.io/luarocks/releases/luarocks-2.3.0.tar.gz",
+ url="https://keplerproject.github.io/luarocks/releases/"
+ "luarocks-2.3.0.tar.gz",
md5="a38126684cf42b7d0e7a3c7cf485defb",
destination="luarocks",
placement='luarocks')
@@ -97,7 +98,8 @@ class Lua(Package):
spack_env.set('LUA_PATH', ';'.join(lua_patterns), separator=';')
spack_env.set('LUA_CPATH', ';'.join(lua_cpatterns), separator=';')
- # For run time environment set only the path for extension_spec and prepend it to LUAPATH
+ # For run time environment set only the path for extension_spec and
+ # prepend it to LUAPATH
if extension_spec.package.extends(self.spec):
run_env.prepend_path('LUA_PATH', ';'.join(lua_patterns),
separator=';')
@@ -105,21 +107,26 @@ class Lua(Package):
separator=';')
def setup_environment(self, spack_env, run_env):
- run_env.prepend_path('LUA_PATH', os.path.join(
- self.spec.prefix, self.lua_share_dir, '?.lua'),
- separator=';')
- run_env.prepend_path('LUA_PATH', os.path.join(
- self.spec.prefix, self.lua_share_dir, '?', 'init.lua'),
- separator=';')
- run_env.prepend_path('LUA_PATH', os.path.join(
- self.spec.prefix, self.lua_lib_dir, '?.lua'),
- separator=';')
- run_env.prepend_path('LUA_PATH', os.path.join(
- self.spec.prefix, self.lua_lib_dir, '?', 'init.lua'),
- separator=';')
- run_env.prepend_path('LUA_CPATH', os.path.join(
- self.spec.prefix, self.lua_lib_dir, '?.so'),
- separator=';')
+ run_env.prepend_path(
+ 'LUA_PATH',
+ os.path.join(self.spec.prefix, self.lua_share_dir, '?.lua'),
+ separator=';')
+ run_env.prepend_path(
+ 'LUA_PATH', os.path.join(self.spec.prefix, self.lua_share_dir, '?',
+ 'init.lua'),
+ separator=';')
+ run_env.prepend_path(
+ 'LUA_PATH',
+ os.path.join(self.spec.prefix, self.lua_lib_dir, '?.lua'),
+ separator=';')
+ run_env.prepend_path(
+ 'LUA_PATH',
+ os.path.join(self.spec.prefix, self.lua_lib_dir, '?', 'init.lua'),
+ separator=';')
+ run_env.prepend_path(
+ 'LUA_CPATH',
+ os.path.join(self.spec.prefix, self.lua_lib_dir, '?.so'),
+ separator=';')
@property
def lua_lib_dir(self):