Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35789 - The PYTHONPATH is also SPECIAL
Summary: The PYTHONPATH is also SPECIAL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-12-14 02:45 UTC by Keith Dart
Modified: 2004-02-08 17:55 UTC (History)
1 user (show)

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 Keith Dart 2003-12-14 02:45:49 UTC
The scripts that generate and read the /etc/profile.env file should also consider the PYTHONPATH variable to be SPECIAL. 


Reproducible: Always
Steps to Reproduce:
1. Add a Python based package to /etc/env.d that uses PYTHONPATH.
2.
3.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-12-14 05:12:23 UTC
i've never come across any python package that requires PYTHONPATH in env.d or profile.env. imo, that should be kept for the user to set, not for site-wide.

this reminds me, maybe i should unset PYTHONPATH for all ebuilds that use distutils/python eclass.
Comment 2 Keith Dart 2003-12-14 05:31:44 UTC
Actually, it's my own package. It is a large collection of Python modules and rather than install them all in site-packages I just set the PYTHONPATH to point to it. I put something in /etc/env.d so that all the users on my system can access it. It is not in portage, however.

BTW, the package is pyNMS: http://sourceforge.net/projects/pynms

And yes, it would would nice to unset PYTHONPATH when doing ebuilds because my package also contains a sitecustomize module that automatically installs some extra builtins, and installs a debugger hook. I would rather that not run when running emerge. It does not seem to have a serious effect, but just in case. 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-12-14 22:56:49 UTC
I don't get it: what do you mean with "special" ?
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-12-20 16:16:05 UTC
genone: see env_update() in portage.py. Specials are incremental env variables.

Specials change included in cvs.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:09 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.