Change Version formatting properties and functions to return Version objects (#4834)
* Change version.up_to() to return Version() object * Add unit tests for Version.up_to() * Fix packages that expected up_to() to return a string * Ensure that up_to() preserves separator characters * Use version indexing instead of up_to * Make all Version formatting properties return Version objects * Update docs * Tests need to test string representation
This commit is contained in:

committed by
Todd Gamblin

parent
df2fc25ddf
commit
250ee413e9
@@ -145,11 +145,11 @@ def setup_environment(self, spack_env, run_env):
|
||||
|
||||
@property
|
||||
def lua_lib_dir(self):
|
||||
return os.path.join('lib', 'lua', self.version.up_to(2))
|
||||
return os.path.join('lib', 'lua', str(self.version.up_to(2)))
|
||||
|
||||
@property
|
||||
def lua_share_dir(self):
|
||||
return os.path.join('share', 'lua', self.version.up_to(2))
|
||||
return os.path.join('share', 'lua', str(self.version.up_to(2)))
|
||||
|
||||
def setup_dependent_package(self, module, dependent_spec):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user