Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499272 - sci-visualization/paraview sets PYTHONPATH globally
Summary: sci-visualization/paraview sets PYTHONPATH globally
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 536846
  Show dependency tree
 
Reported: 2014-01-25 21:46 UTC by Mike Gilbert
Modified: 2015-01-19 18:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2014-01-25 21:46:24 UTC
Per discussion on bug 499020, adding paths to PYTHONPATH via env.d to support a single consumer is probably not a great idea.

It would be nice if you could clean that up.
Comment 1 Julian Ospald 2014-01-26 01:21:00 UTC
afais the site-packages dir is accessed in various c++ source files and kind of hardcoded, so moving everything to PYTHON_SITEDIR will need heavy patching

using wrappers, I'd have to figure out what kind of binaries get installed for which useflags

a lot of work, either way
Comment 2 Matthias Maier gentoo-dev 2015-01-19 18:20:14 UTC
Ok, this is way getting out of hands. I've just removed the global environment setup completely. Paraviews python shell sets PYTHONPATH automatically so for most use cases everything should work as normal.

I've added an elog message for all other use cases.

Maybe, we can migrate paraview's python stuff to the system wide site-packages some day...


*paraview-4.2.0-r1 (19 Jan 2015)
*paraview-4.1.0-r2 (19 Jan 2015)
*paraview-4.0.1-r2 (19 Jan 2015)

  19 Jan 2015; Matthias Maier <tamiko@gentoo.org> +paraview-4.0.1-r2.ebuild,
  +paraview-4.1.0-r2.ebuild, +paraview-4.2.0-r1.ebuild,
  -paraview-4.0.1-r1.ebuild, -paraview-4.1.0-r1.ebuild, -paraview-4.2.0.ebuild:
  do not set global PYTHONPATH environment variable, bug #499272