root/root-make-DistRDF-optional.patch
Mattias Ellert daf8bdab01 Make DistRDF optional
Update the root-tmva-threads patch (upstream's version)
Exclude multiproc tests with random failures
2023-03-20 20:25:51 +01:00

17 lines
881 B
Diff

--- root-6.24.08/bindings/pyroot/pythonizations/python/ROOT/_facade.py.orig 2022-09-29 15:03:06.000000000 +0200
+++ root-6.24.08/bindings/pyroot/pythonizations/python/ROOT/_facade.py 2023-03-19 09:40:08.823564686 +0100
@@ -290,8 +290,12 @@
from libROOTPythonizations import MakeNumpyDataFrame
ns.MakeNumpyDataFrame = MakeNumpyDataFrame
- # Inject Experimental.Distributed package into namespace RDF
- ns.Experimental = _create_rdf_experimental_distributed_module(ns)
+ try:
+ # Inject Experimental.Distributed package into namespace RDF if available
+ ns.Experimental = _create_rdf_experimental_distributed_module(ns)
+ except ImportError:
+ pass
+
except:
raise Exception('Failed to pythonize the namespace RDF')
del type(self).RDF