Bug 232124 - sci-physics/root-5.* may install python code but does not update PYTHONPATH
Bug#: 232124 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: sci-physics@gentoo.org Reported By: benni@netronaut.de
Component: Ebuilds
URL: 
Summary: sci-physics/root-5.* may install python code but does not update PYTHONPATH
Keywords:  
Status Whiteboard: 
Opened: 2008-07-17 23:08 0000
Description:   Opened: 2008-07-17 23:08 0000
Hi,

sci-physics/root-5.* has a nice python module (activated via USE=python) that
gets installed in a non-standard location (/usr/lib/root). Standard python code
looks for modules in PYTHONPATH that is not updated by the root ebuild, so a
user had to update it by hand himself if he wanted to use python+root.

/usr/lib/root contains the following python files on my machine:
  /usr/lib/root/PyCintex.py  /usr/lib/root/ROOTwriter.py
  /usr/lib/root/ROOT.py      /usr/lib/root/writer.py
They seem to have no collisions with other modules on my machine.

The module is in /usr/lib/root/ROOT. I am attaching a patch that adds the
module path to PYTHONPATH. Another possibility would be to install the module
files in the standard path under /usr/lib/python*.*, so I can be automatically
updated if a new major python version gets installed, but I have no idea about
the hardcoded paths in the libraries.


Cheers,

Benjamin

Reproducible: Sometimes

Steps to Reproduce:

------- Comment #1 From Benjamin Bannier 2008-07-17 23:09:54 0000 -------
Created an attachment (id=160672) [details]
patch against portage tree

------- Comment #2 From Sébastien Fabbro 2008-07-18 09:20:56 0000 -------
Patch added.
Thanks much!