From 13327a5b8b6ecd6fa38263fd5147bec4ff511382 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Thu, 4 Dec 2025 16:59:44 +0100 Subject: [PATCH] pyLCIO: adapt to changes in ROOT regarding licppyy libcppyy was moved to a non-importable location in root 6.38 --- src/python/pyLCIO/base/HandleExceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/python/pyLCIO/base/HandleExceptions.py b/src/python/pyLCIO/base/HandleExceptions.py index fdee1bb3d..632a4133b 100644 --- a/src/python/pyLCIO/base/HandleExceptions.py +++ b/src/python/pyLCIO/base/HandleExceptions.py @@ -12,8 +12,12 @@ import pyLCIO import pyLCIO.exceptions.Exceptions +# Cope with API change with ROOT version >= 6.32 +if ROOT.gROOT.GetVersionCode() >= (6<<16) + (32<<8) : + from cppyy.types import Function as CPPOverload # Cope with API change with ROOT version >= 6.21 -if ROOT.gROOT.GetVersionCode() >= (6<<16) + (21<<8) : +elif ROOT.gROOT.GetVersionCode() >= (6<<16) + (21<<8) : + # libcppyy has been moved in ROOT 6.38 and can no longer be imported from libcppyy import CPPOverload else: CPPOverload = ROOT.MethodProxy