sherpa: only enable_or_disable in v3: (#41162)

This commit is contained in:
Wouter Deconinck 2023-11-20 02:20:21 -06:00 committed by GitHub
parent 55d2ee9160
commit df1111c24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ def configure_args(self):
args.extend(self.enable_or_disable("pythia"))
hepmc_root = lambda x: self.spec["hepmc"].prefix
args.extend(self.enable_or_disable("hepmc2", activation_value=hepmc_root))
if self.spec.satisfies("@2.2.13:"):
if self.spec.satisfies("@3:"):
args.extend(self.enable_or_disable("hepmc3", activation_value="prefix"))
args.extend(self.enable_or_disable("rivet", activation_value="prefix"))
args.extend(self.enable_or_disable("lhapdf", activation_value="prefix"))