Simultaneously installing PyROOT for Python2.7 and 3.4

Hi,

Is it possible to get PyROOT to work with Python2.7 and 3.4 without duplicating the whole ROOT (v5.34.32) installation? This is easy to do for packages installed by pip/pip3, for instance, because they end up in Python-version-specific directories.

Cheers,
Davide

Copy libPyROOT.so to new place, “make clean-pyroot”, reconfigure for new python, rebuild for second libPyROOT.so. Differentiate with PYTHONPATH.

-Dom

Dominique,

Thanks for your reply. I ended up copying ROOT.py and libPyROOT.so into $PYTHON_PREFIX/lib/python-X.Y/site-packages, which is where pip installs packages.

Cheers,
Davide