hepmc3: fix from_variant -> self.define (#41605)

* hepmc3: fix from_variant -> self.define
* hepmc3: str on versions
This commit is contained in:
Wouter Deconinck 2023-12-13 00:02:48 -06:00 committed by GitHub
parent 965860d1f8
commit f01774f1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ def cmake_args(self):
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),
]
)