ROOT dependency from the python virtualenv selected during ROOT installation

Hi all,

I remember that, at least years ago, a ROOT installation built from source was strictly dependent on the python executable that was passed (or automatically found) by cmake (or configure in the Ancient Age).

Is it still the case? Is it only the python executable or also the libs and the site-package? What is the role of the PYTHONPATH in this? (Although I guess this env variable tells just where to find the packages…)

I explain my case: I have to build ROOT on top on two python3 virtualenv stacks that differ only by a few packages versions and I would like to avoid to duplicate the ROOT installation. Note also that the python executable is the same for both virtualenv, a copy (because I prefer the option --always-copy when creating the virtualenv) of the Debian 12 system python.

So the question is if I can use the same ROOT installation for both python3 stacks. (At the moment it seems to work but not sure if I have maybe not yet hit the sensible cases)

I look forward to your reply,
Matteo


ROOT Version: any latest version (>= 6.34)
Platform: Debian 12
Compiler: gcc 12.2


Hi @malfonsi79,

Thank you for your question.
@bellenot could you please take a look it?

Lukas

Hi, no idea, I have no experience with PyROOT and virtual environments. Maybe @vpadulan know better?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.