Skip to content

Commit

Permalink
Fix FDB related tests (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
victoria-cherkas authored Feb 27, 2024
1 parent 586747c commit d9c9a9e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
21 changes: 21 additions & 0 deletions repos/c2sm/packages/fdb/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from spack.package import *

from spack.pkg.builtin.fdb import Fdb as SpackFdb


class Fdb(SpackFdb):

# This section can be removed when the following commit
# https://github.com/spack/spack/commit/8871bd5ba5c58562b8c20baa00f125aeccba586f
# is included in a release on spack and this is used by spack-c2sm.
depends_on("[email protected]:", when="@5.11.22:")

# This section can be removed when the following PR
# https://github.com/spack/spack/pull/42874
# is included in a release on spack and this is used by spack-c2sm.
@property
def libs(self):
return find_libraries("libfdb5",
root=self.prefix,
shared=True,
recursive=True)
10 changes: 10 additions & 0 deletions repos/c2sm/packages/metkit/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from spack.package import *

from spack.pkg.builtin.metkit import Metkit as SpackMetkit


class Metkit(SpackMetkit):

# This file can be removed when this PR https://github.com/spack/spack/pull/42871
# is included in a release on spack and this is used by spack-c2sm.
depends_on("eckit@:1.21", when="@:1.10")

0 comments on commit d9c9a9e

Please sign in to comment.