Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232124 - sci-physics/root-5.* may install python code but does not update PYTHONPATH
Summary: sci-physics/root-5.* may install python code but does not update PYTHONPATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 23:08 UTC by Benjamin Bannier
Modified: 2008-07-18 09:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against portage tree (Update-PYTHONPATH.patch,1.27 KB, patch)
2008-07-17 23:09 UTC, Benjamin Bannier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Bannier 2008-07-17 23:08:53 UTC
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 Benjamin Bannier 2008-07-17 23:09:54 UTC
Created attachment 160672 [details, diff]
patch against portage tree
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-07-18 09:20:56 UTC
Patch added.
Thanks much!