Skip to content
Snippets Groups Projects
Commit 1a1bf310 authored by Stephen Herbein's avatar Stephen Herbein
Browse files

lua: switch self.version[:2] to .up_to(2)

Previous package would not install correctly, would throw:
return os.path.join('share', 'lua', '%d.%d' % self.version[:2])
TypeError: %d format: a number is required, not Version
parent b9148b17
Branches
Tags
No related merge requests found
......@@ -140,11 +140,11 @@ def setup_environment(self, spack_env, run_env):
@property
def lua_lib_dir(self):
return os.path.join('lib', 'lua', '%d.%d' % self.version[:2])
return os.path.join('lib', 'lua', self.version.up_to(2))
@property
def lua_share_dir(self):
return os.path.join('share', 'lua', '%d.%d' % self.version[:2])
return os.path.join('share', 'lua', self.version.up_to(2))
def setup_dependent_package(self, module, ext_spec):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment