appeasing the great vengeful flake8 gods
This commit is contained in:
parent
df30182a10
commit
f50439b990
1 changed files with 24 additions and 17 deletions
|
@ -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 @@ def setup_dependent_environment(self, spack_env, run_env, extension_spec):
|
|||
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,20 +107,25 @@ def setup_dependent_environment(self, spack_env, run_env, extension_spec):
|
|||
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'),
|
||||
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'),
|
||||
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'),
|
||||
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'),
|
||||
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'),
|
||||
run_env.prepend_path(
|
||||
'LUA_CPATH',
|
||||
os.path.join(self.spec.prefix, self.lua_lib_dir, '?.so'),
|
||||
separator=';')
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in a new issue