From 11616bf880bd690b1a38164aba0a495e0c75a373 Mon Sep 17 00:00:00 2001
From: Enric Tejedor Saavedra <enric.tejedor.saavedra@cern.ch>
Date: Mon, 8 Jul 2019 18:10:46 +0200
Subject: [PATCH] [Exp PyROOT] TPython.h is now API.h

---
 bindings/pyroot_experimental/PyROOT/src/CppCallablePyz.cxx | 4 ++--
 bindings/pyroot_experimental/PyROOT/src/RDataFramePyz.cxx  | 2 +-
 bindings/pyroot_experimental/PyROOT/src/TDirectoryPyz.cxx  | 2 +-
 bindings/pyroot_experimental/PyROOT/src/TFilePyz.cxx       | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bindings/pyroot_experimental/PyROOT/src/CppCallablePyz.cxx b/bindings/pyroot_experimental/PyROOT/src/CppCallablePyz.cxx
index fcab8efaafc..a5b1ff28730 100644
--- a/bindings/pyroot_experimental/PyROOT/src/CppCallablePyz.cxx
+++ b/bindings/pyroot_experimental/PyROOT/src/CppCallablePyz.cxx
@@ -401,9 +401,9 @@ PyObject* GenericCallableImpl_call(PyObject * /*self*/, PyObject *args)
       return NULL;
    }
 
-   err = gInterpreter->Declare("#include \"CPyCppyy/TPython.h\"");
+   err = gInterpreter->Declare("#include \"CPyCppyy/API.h\"");
    if (!err) {
-      PyErr_SetString(PyExc_RuntimeError, "Failed to compile C++ wrapper: Failed to include TPython.h.");
+      PyErr_SetString(PyExc_RuntimeError, "Failed to compile C++ wrapper: Failed to include API.h.");
       return NULL;
    }
 
diff --git a/bindings/pyroot_experimental/PyROOT/src/RDataFramePyz.cxx b/bindings/pyroot_experimental/PyROOT/src/RDataFramePyz.cxx
index 565f8c5d3c9..c9b6622b832 100644
--- a/bindings/pyroot_experimental/PyROOT/src/RDataFramePyz.cxx
+++ b/bindings/pyroot_experimental/PyROOT/src/RDataFramePyz.cxx
@@ -15,7 +15,7 @@
 #include "PyROOTPythonize.h"
 #include "RConfig.h"
 #include "TInterpreter.h"
-#include "CPyCppyy/TPython.h"
+#include "CPyCppyy/API.h"
 
 #include <utility> // std::pair
 #include <sstream> // std::stringstream
diff --git a/bindings/pyroot_experimental/PyROOT/src/TDirectoryPyz.cxx b/bindings/pyroot_experimental/PyROOT/src/TDirectoryPyz.cxx
index e04dae57612..b7ead6d88fb 100644
--- a/bindings/pyroot_experimental/PyROOT/src/TDirectoryPyz.cxx
+++ b/bindings/pyroot_experimental/PyROOT/src/TDirectoryPyz.cxx
@@ -14,7 +14,7 @@
 #include "CallContext.h"
 #include "PyROOTPythonize.h"
 #include "ProxyWrappers.h"
-#include "CPyCppyy/TPython.h"
+#include "CPyCppyy/API.h"
 #include "Utility.h"
 #include "PyzCppHelpers.hxx"
 #include "TClass.h"
diff --git a/bindings/pyroot_experimental/PyROOT/src/TFilePyz.cxx b/bindings/pyroot_experimental/PyROOT/src/TFilePyz.cxx
index 050d768210f..2b78e589111 100644
--- a/bindings/pyroot_experimental/PyROOT/src/TFilePyz.cxx
+++ b/bindings/pyroot_experimental/PyROOT/src/TFilePyz.cxx
@@ -13,7 +13,7 @@
 #include "CPPOverload.h"
 #include "CallContext.h"
 #include "PyROOTPythonize.h"
-#include "CPyCppyy/TPython.h"
+#include "CPyCppyy/API.h"
 #include "Utility.h"
 #include "PyzCppHelpers.hxx"
 #include "TFile.h"
-- 
GitLab