summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2021-12-24 06:47:18 -0600
committerGitHub <noreply@github.com>2021-12-24 13:47:18 +0100
commita294acfb73839c9782aff976953a969fb44e161e (patch)
tree220803a89bf24396bcb4fa30bb102f5cd6316c81
parent9602d0a03c5ea69c7480d5cdad382f240a3d0e6b (diff)
downloadspack-a294acfb73839c9782aff976953a969fb44e161e.tar.gz
spack-a294acfb73839c9782aff976953a969fb44e161e.tar.bz2
spack-a294acfb73839c9782aff976953a969fb44e161e.tar.xz
spack-a294acfb73839c9782aff976953a969fb44e161e.zip
pythia8: bugfix for pythia8 +fastjet (#28153)
-rw-r--r--var/spack/repos/builtin/packages/pythia8/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/pythia8/package.py b/var/spack/repos/builtin/packages/pythia8/package.py
index 9b9ea46c43..eeda2b680d 100644
--- a/var/spack/repos/builtin/packages/pythia8/package.py
+++ b/var/spack/repos/builtin/packages/pythia8/package.py
@@ -97,8 +97,12 @@ class Pythia8(AutotoolsPackage):
args += '--without-mg5mes'
args += self.with_or_without('hepmc3', activation_value='prefix')
- args += self.with_or_without('fastjet3', activation_value='prefix',
- variant='fastjet')
+
+ if '+fastjet' in self.spec:
+ args += '--with-fastjet3=' + self.spec['fastjet'].prefix
+ else:
+ args += '--without-fastjet3'
+
args += self.with_or_without('evtgen', activation_value='prefix')
args += self.with_or_without('root', activation_value='prefix')
args += self.with_or_without('rivet', activation_value='prefix')