Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6306 from cms-sw/py3-root622
Py3 root622
- Loading branch information
Showing
9 changed files
with
74 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Requires: py3-pandas py3-root_numpy | ||
Requires: py3-pandas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Requires: py3-pandas py2-pandas py2-root_numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Requires: root py2-matplotlib | ||
Requires: root py2-matplotlib | ||
%define PipPostBuild perl -p -i -e "s|^#!.*python.*|#!/usr/bin/env python|" %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/pyext/yoda/pyroot_helpers.hh b/pyext/yoda/pyroot_helpers.hh | ||
index b299a74..3e7f4d5 100644 | ||
--- a/pyext/yoda/pyroot_helpers.hh | ||
+++ b/pyext/yoda/pyroot_helpers.hh | ||
@@ -1,12 +1,12 @@ | ||
#include "YODA/ROOTCnv.h" | ||
#include "Python.h" | ||
#include "YODA/Profile1D.h" | ||
-#include "TPython.h" | ||
+#include "CPyCppyy/API.h" | ||
|
||
|
||
// Get a PyROOT object from a ROOT one | ||
inline PyObject* root_to_py_owned(TObject* root_obj) { | ||
- return TPython::ObjectProxy_FromVoidPtr(root_obj, root_obj->ClassName()); | ||
+ return CPyCppyy::Instance_FromVoidPtr(root_obj, root_obj->ClassName()); | ||
/// @todo Different signatures in different ROOT versions? | ||
//return TPython::ObjectProxy_FromVoidPtr(root_obj, root_obj->ClassName(), kFALSE); | ||
} | ||
@@ -14,5 +14,5 @@ inline PyObject* root_to_py_owned(TObject* root_obj) { | ||
|
||
// Get the ROOT object in a PyROOT one | ||
inline TObject* py_owned_to_root(PyObject* pyroot_obj) { | ||
- return (TObject*) TPython::ObjectProxy_AsVoidPtr(pyroot_obj); | ||
+ return (TObject*) CPyCppyy::Instance_AsVoidPtr(pyroot_obj); | ||
} |