Skip to content

Commit

Permalink
Clean up a few recipes, don't build tests if they are not going to run
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 29, 2024
1 parent d401303 commit d0a5a8d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 37 deletions.
28 changes: 5 additions & 23 deletions packages/k4edm4hep2lcioconv/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,41 +47,23 @@ class K4edm4hep2lcioconv(CMakePackage, Key4hepPackage):
sha256="c220604577d309bc11a5a4c147f55640fedef90375d1232439343362607a3906",
deprecated=True,
)
version(
"00-05",
sha256="6d352bacff6a16f8d2643cdb108794d02889c38b119442c3c260f9a75cb63e7a",
deprecated=True,
)
version(
"00-04",
sha256="1b6db84f42a1d6e2e5a02cecbc01a0282081b7270a523f201fad4d39f78ca015",
deprecated=True,
)
version(
"00-03",
sha256="0b7fffbe1a07aae4b5b7523e855e944fe90f6e072dae9a460a07134025bf1cf8",
deprecated=True,
)

depends_on("lcio")
depends_on("[email protected]:", when="@00-05:")
depends_on("[email protected]:")
depends_on("[email protected]:", when="@00-08:")
depends_on("[email protected]:", when="@00-09:")
depends_on("podio")
depends_on("podio@1:", when="@00-09:")
depends_on("[email protected]:", when="@00-03")
depends_on("[email protected]:", when="@00-04:")
depends_on("[email protected]:", when="@00-05:")
depends_on("[email protected]:")
depends_on("[email protected]:", when="@00-09:")

def cmake_args(self):
args = [
self.define("BUILD_TESTING", self.run_tests),
self.define("FORCE_COLORED_OUTPUT", False),
self.define(
"CMAKE_CXX_STANDARD", self.spec["root"].variants["cxxstd"].value
),
]
args.append(
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}"
)
return args

def setup_run_environment(self, env):
Expand Down
8 changes: 4 additions & 4 deletions packages/k4fwcore/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class K4fwcore(CMakePackage, Ilcsoftpackage):
depends_on("[email protected]:", when="@1.0pre17:")

def cmake_args(self):
args = []
args.append(
args = [
self.define(
"CMAKE_CXX_STANDARD", self.spec["root"].variants["cxxstd"].value
)
)
),
self.define("BUILD_TESTING", self.run_tests),
]
return args

def setup_run_environment(self, env):
Expand Down
13 changes: 8 additions & 5 deletions packages/k4marlinwrapper/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class K4marlinwrapper(CMakePackage, Ilcsoftpackage):
"""Gaudify Marlin Processors in order to run them in the Key4HEP framework"""
"""Gaudify Marlin Processors in order to run them in the Key4hep framework"""

homepage = "https://github.com/key4hep/k4MarlinWrapper"
git = "https://github.com/key4hep/k4MarlinWrapper.git"
Expand Down Expand Up @@ -48,10 +48,13 @@ class K4marlinwrapper(CMakePackage, Ilcsoftpackage):
depends_on("k4simgeant4", type=("test"))

def cmake_args(self):
args = [self.define("FORCE_COLORED_OUTPUT", False)]
args.append(
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}"
)
args = [
self.define("FORCE_COLORED_OUTPUT", False),
self.define(
"CMAKE_CXX_STANDARD", self.spec["root"].variants["cxxstd"].value
),
self.define("BUILD_TESTING", self.run_tests),
]
return args

def setup_run_environment(self, env):
Expand Down
11 changes: 6 additions & 5 deletions packages/k4projecttemplate/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ class K4projecttemplate(CMakePackage, Key4hepPackage):
depends_on("root")

def cmake_args(self):
args = []
# C++ Standard
args.append(
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}"
)
args = [
self.define(
"CMAKE_CXX_STANDARD", self.spec["root"].variants["cxxstd"].value
),
self.define("BUILD_TESTING", self.run_tests),
]
return args

def setup_run_environment(self, env):
Expand Down

0 comments on commit d0a5a8d

Please sign in to comment.