root/root-make-DistRDF-optional.patch
Mattias Ellert a08fcbc5ad Update to 6.28.00
ROOT now uses llvm/clang version 13 (updated from version 9)
Clean up specfile by removing EPEL 7 conditionals
Drop dataframe, roofit and tmva-sofieparser on EPEL 8 ppc64le due to
  "pure virtual method called" errors
Split the root-geom sub-package into three separate sub-packages:
  root-geom, root-geom-builder and root-geom-painter
Enable uring support in EPEL 9 (liburing now available)
New sub-packages: root-geom-webviewer, root-roofit-jsoninterface,
  root-testsupport, root-tree-ntuple-utils, root-tree-webviewer,
  root-xroofit
Dropped patches: 31
New patches: 17
Updated patches: 4
2023-03-19 07:53:00 +01:00

32 lines
1.5 KiB
Diff

From 90e7f868bc115da821c0f04dbafd80ef72e7490a Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Thu, 2 Mar 2023 08:31:29 +0100
Subject: [PATCH 2/2] Missing experimental add-on module
ROOT.RDF.Experimental.Distributed (DistRDF) should not fail the loading of
the rest of the ROOT.RDF namespace.
---
bindings/pyroot/pythonizations/python/ROOT/_facade.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bindings/pyroot/pythonizations/python/ROOT/_facade.py b/bindings/pyroot/pythonizations/python/ROOT/_facade.py
index 865321e713..69046fc71c 100644
--- a/bindings/pyroot/pythonizations/python/ROOT/_facade.py
+++ b/bindings/pyroot/pythonizations/python/ROOT/_facade.py
@@ -336,8 +336,11 @@ class ROOTFacade(types.ModuleType):
ns.FromNumpy = MakeNumpyDataFrame
if sys.version_info >= (3, 8):
- # Inject Experimental.Distributed package into namespace RDF
- ns.Experimental.Distributed = _create_rdf_experimental_distributed_module(ns.Experimental)
+ try:
+ # Inject Experimental.Distributed package into namespace RDF if available
+ ns.Experimental.Distributed = _create_rdf_experimental_distributed_module(ns.Experimental)
+ except ImportError:
+ pass
except:
raise Exception('Failed to pythonize the namespace RDF')
del type(self).RDF
--
2.39.2