edm4hep: Make edm4hep extend python after upstream changes (#44681)
This commit is contained in:
parent
0cec923e0a
commit
49ba2d84a0
@ -58,6 +58,9 @@ class Edm4hep(CMakePackage):
|
|||||||
depends_on("heppdt", type="test")
|
depends_on("heppdt", type="test")
|
||||||
depends_on("catch2@3.0.1:", type="test")
|
depends_on("catch2@3.0.1:", type="test")
|
||||||
|
|
||||||
|
# Corresponding changes in EDM4hep landed with https://github.com/key4hep/EDM4hep/pull/314
|
||||||
|
extends("python", when="@0.10.6:")
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
args = []
|
args = []
|
||||||
# C++ Standard
|
# C++ Standard
|
||||||
@ -67,6 +70,7 @@ def cmake_args(self):
|
|||||||
|
|
||||||
def setup_run_environment(self, env):
|
def setup_run_environment(self, env):
|
||||||
env.prepend_path("LD_LIBRARY_PATH", self.spec["edm4hep"].libs.directories[0])
|
env.prepend_path("LD_LIBRARY_PATH", self.spec["edm4hep"].libs.directories[0])
|
||||||
|
if self.spec.satisfies("@:0.10.5"):
|
||||||
env.prepend_path("PYTHONPATH", self.prefix.python)
|
env.prepend_path("PYTHONPATH", self.prefix.python)
|
||||||
|
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
|
Loading…
Reference in New Issue
Block a user