From f438fb6c798c49e67db1dd6fc1c4a5b3b9b67959 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 17 May 2023 17:15:50 +0200 Subject: whizard: build newer versions in parallel (#37422) --- var/spack/repos/builtin/packages/whizard/package.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/var/spack/repos/builtin/packages/whizard/package.py b/var/spack/repos/builtin/packages/whizard/package.py index 07203b7324..57a6434229 100644 --- a/var/spack/repos/builtin/packages/whizard/package.py +++ b/var/spack/repos/builtin/packages/whizard/package.py @@ -43,17 +43,11 @@ class Whizard(AutotoolsPackage): ) variant("pythia8", default=True, description="builds with pythia8") - variant("fastjet", default=False, description="builds with fastjet") - variant("lcio", default=False, description="builds with lcio") - variant("lhapdf", default=False, description="builds with fastjet") - variant("openmp", default=False, description="builds with openmp") - variant("openloops", default=False, description="builds with openloops") - variant("latex", default=False, description="data visualization with latex") depends_on("libtirpc") @@ -86,9 +80,12 @@ class Whizard(AutotoolsPackage): msg="The fortran compiler needs to support Fortran 2008. For more detailed information see https://whizard.hepforge.org/compilers.html", ) - # Trying to build in parallel leads to a race condition at the build step. - # See: https://github.com/key4hep/k4-spack/issues/71 - parallel = False + @property + def parallel(self): + # Trying to build in parallel leads to a race condition at the build step. + # See: https://github.com/key4hep/key4hep-spack/issues/71 + # On 3.1.0 it doesn't seem to happen + return self.spec.version > Version("3.0.3") def setup_build_environment(self, env): # whizard uses the compiler during runtime, -- cgit v1.2.3-70-g09d2