- Feb 16, 2021
-
-
Enric Tejedor Saavedra authored
This modification was done in the old (legacy) JupyROOT, but not in the new one that was separated from the new PyROOT. This fixes the display of JSROOT graphics in SWAN.
-
- Oct 13, 2020
-
-
Enric Tejedor Saavedra authored
Otherwise, libcppyy_backend is not found on MacOS when SIP is activated and when using cppyy alone. Since settings on (DY)LD_LIBRARY_PATH are ignored, libcppyy_backend is not found.
-
Enric Tejedor Saavedra authored
The previous version was wrongly inverted: the deletions and additions had to be additions and deletions, respectively.
-
Axel Naumann authored
-
Axel Naumann authored
-
- Oct 12, 2020
-
-
Enric Tejedor Saavedra authored
The previous approach, based on comparing a string containing the argument types to the signature of the constructor, did not work in presence of default arguments (see 6467). The new approach reuses the machinery in place to try the constructors of Dispatcher. On the other hand, a constructor that accepted a PyObject* is no longer added to the Dispatcher class, since it was triggering a corruption of the dispatcher pointer when being attempted in the reproducer in 6467. These changes synchronize this part of the code with what is present in upstream cppyy.
-
- Oct 08, 2020
-
-
Enric Tejedor Saavedra authored
-
- Sep 25, 2020
-
-
Enric Tejedor Saavedra authored
The previous way of calculating the offset was causing a corruption in a multi-inheritance case described in issue #6376. Adapted from: https://bitbucket.org/wlav/cpycppyy/commits/7d9eb4a170ff9e3da9569232ba76ef59c9ee72fd since CPPConstructor.cxx has changed since last update.
-
- Sep 08, 2020
-
-
Enric Tejedor Saavedra authored
Right after importing cppyy, set batch mode to false to neutralize the setting to true made by cppyy (in case ROOTSYS is not defined). Disabling the batch mode at this point is ok, since the user settings done via command line (-b) or programmatically are processed later. This means the setting we do here does not overwrite a possible user setting.
-
Omar Zapata authored
explanation: The bug was detected in LCG98 python2, the try code is importing 'builtins' in python2 and the second import __builtin__ as builtins is never called. then builtins in python2 is a module <module 'builtins' from '/cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages/builtins/__init__.pyc'> for that reason _is_ipython = hasattr(builtins, '__IPYTHON__') is false. I am importing the right one according to the python major version.
-
- Sep 04, 2020
-
-
Enric Tejedor Saavedra authored
-
Scott Snyder authored
-
- Aug 14, 2020
-
-
Stefan Wunsch authored
-
Stefan Wunsch authored
If the method __str__ is already defined on the C++ side, don't inject the cling based pretty printing. Related to ROOT-10967
-
Enric Tejedor Saavedra authored
-
Enric Tejedor Saavedra authored
Also, add a check when inspecting constructors, to make sure a copy constructor from a base class is only used if it is public or protected.
-
- Aug 13, 2020
-
-
Bertrand Bellenot authored
-
- Aug 12, 2020
-
-
Enric Tejedor Saavedra authored
Follow the same strategy adopted for libROOTPythonizations and libcppyy already.
-
Enric Tejedor Saavedra authored
...since it not used anywhere in Cppyy's code. It used to be used in TPyClassGenerator.cxx, but the code in that file was completely commented out. This will prevent a conflict with a class of the same name that exists in TPython, as reported by the address sanitizer.
-
- Jul 22, 2020
-
-
Enric Tejedor Saavedra authored
If possible, this should be replaced by the automatic wrapping of Python callables provided by new cppyy.
-
- Jul 17, 2020
-
-
Enric Tejedor Saavedra authored
-
Enric Tejedor Saavedra authored
-
- Jul 09, 2020
-
-
Stefan Wunsch authored
-
- Jul 03, 2020
-
-
Mattias Ellert authored
This is a workaround for https://bugs.python.org/issue21591 which affect Python 2 versions before 2.7.9. This includes Python 2.7.5 which is the Python 2 version on RHEL/CentOS 7.
-
- Jun 26, 2020
-
-
Oksana Shadura authored
-
- Jun 15, 2020
-
-
Stephan Hageboeck authored
(cherry picked from commit ad2206344917d3e8badde4159049f8432444f5f3)
-
- Jun 11, 2020
-
-
Enric Tejedor Saavedra authored
To prevent deprecation warning.
-
- Jun 09, 2020
-
-
Massimiliano Galli authored
[CMake][Exp PyROOT] Use ROOT_LIBRARY_PROPERTIES to set suffix to .so and prefix to lib for libcppyy and libcppyy_backend
-
Massimiliano Galli authored
As a general rule, libraries containing C/C++ extensions that are meant to be loaded from Python, should not be linked against libPython; the reason for this is that when these libraries are imported, Python has already loaded the libPython symbols, and if these are different from the ones used to link against the extension module a crash can happen. libcppyy and libROOTPythonizations, being only imported from Python, do not need to link against libPython. On the other hand, this is needed for libROOTTPython, which is used only form C++.
-
- Jun 04, 2020
-
-
Enric Tejedor Saavedra authored
-
Massimiliano Galli authored
[Exp PyROOT] Raise detailed error when Python version is different from the one used to build libcppyy Suggested by Chris Burr
-
- May 26, 2020
-
-
Stefan Wunsch authored
MacOS does not allow to run a second thread so fall back to the input hook because it's the best we can do. This is the same behaviour than in the old PyROOT.
-
Stefan Wunsch authored
The PR spawns a separate thread to process ROOT events if we cannot attach the update mechanism to an exisiting hook such as existing in the interactive Python mode or for ipython/notebooks. Also adds backward compatibility for ROOT.PyROOT.StartGUIThread and shuts down the thread safely at teardown time. Related to ROOT-10774
-
- May 25, 2020
-
-
Enric Tejedor Saavedra authored
It was observed that, when running make package, neither the Python sources neither their bytecodes were copied in the CPack lib directory. The changes in this commit allow both "make install" and "make package" to work by properly selecting the directory where the Python sources and bytecodes will be installed. Moreover, the sources and the bytecodes are installed together.
-
Enric Tejedor Saavedra authored
With the previous install command, the cppyy libraries were not copied into the CPack lib directory (inside the build dir) when running make package.
-
Enric Tejedor Saavedra authored
-
Enric Tejedor Saavedra authored
When running "make package", it was observed that copying the Python source files to runtimedir was incorrect, and the generation of the bytecodes was failing later too as a consequence. This change ensures that the Python sources are installed correctly.
-
- May 15, 2020
-
-
Massimiliano Galli authored
-
Omar Zapata authored
-
- May 14, 2020
-
-
Massimiliano Galli authored
PyROOT/PyMVA related These changes address the case in which Python 3 has only Interpreter while Python 2 has both Interpreter and Development. In this case, the Python used to build ROOT (which requires only Interpreter) will be 3, but PyROOT (which requires also Development) will be built only for 2. To achieve this, ROOT and PyROOT/PyMVA use now two different sets of variables. Documentation for the whole machinery is also added. It is also worth pointing out that the entire machinery could be much simplified by just requiring the following as a prerequisite for ROOT: - CMake >= 3.12.4 - Python-Development package
-