Skip to content

Commit

Permalink
Fix the import failure of spack.version.Version
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Jan 31, 2025
1 parent f6b251d commit cd42025
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/thapi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@


from spack.package import *
import spack.version

class Thapi(AutotoolsPackage):
"""A tracing infrastructure for heterogeneous computing applications."""

Expand Down Expand Up @@ -33,7 +35,7 @@ class Thapi(AutotoolsPackage):
depends_on('lttng-tools@:2.12.999', type=('build', 'link', 'run'), when='@:0.0.7')

# Restricting to ruby <= 3.1 when spack is less than 0.23
if spack.version.Version(spack.spack_version) < spack.version.Version("0.23"):
if Version(spack.spack_version) < Version("0.23"):
depends_on('[email protected]:3.1', type=('build', 'run'))
else:
depends_on('[email protected]:', type=('build', 'run'))
Expand Down

0 comments on commit cd42025

Please sign in to comment.