summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2023-12-13 00:02:48 -0600
committerGitHub <noreply@github.com>2023-12-13 07:02:48 +0100
commitf01774f1d41781bc4b9e5abb5469e234168da663 (patch)
treeb76abed3d4ee9f5a0b3ad50841a6df72cdd2c5f2 /var
parent965860d1f8330fd9a154d0cbbc7d655cec9f7ce1 (diff)
downloadspack-f01774f1d41781bc4b9e5abb5469e234168da663.tar.gz
spack-f01774f1d41781bc4b9e5abb5469e234168da663.tar.bz2
spack-f01774f1d41781bc4b9e5abb5469e234168da663.tar.xz
spack-f01774f1d41781bc4b9e5abb5469e234168da663.zip
hepmc3: fix from_variant -> self.define (#41605)
* hepmc3: fix from_variant -> self.define * hepmc3: str on versions
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hepmc3/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/hepmc3/package.py b/var/spack/repos/builtin/packages/hepmc3/package.py
index de8936d52a..39c06f06c0 100644
--- a/var/spack/repos/builtin/packages/hepmc3/package.py
+++ b/var/spack/repos/builtin/packages/hepmc3/package.py
@@ -63,8 +63,8 @@ class Hepmc3(CMakePackage):
py_ver = spec["python"].version.up_to(2)
args.extend(
[
- from_variant("HEPMC3_PYTHON_VERSIONS", str(py_ver)),
- from_variant("HEPMC3_Python_SITEARCH" + py_ver.joined, python_platlib),
+ self.define("HEPMC3_PYTHON_VERSIONS", str(py_ver)),
+ self.define("HEPMC3_Python_SITEARCH" + str(py_ver.joined), python_platlib),
]
)