This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: site.py sets sys.path incorrectly.
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fdrake, rozen
Priority: normal Keywords:

Created on 2001-02-25 19:48 by rozen, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (2)
msg3558 - (view) Author: Don Rozenberg (rozen) Date: 2001-02-25 19:48
site.py appears to append the site-packages to the
END of sys.path.  I think it should be set after 
PYTHONPATH but before the standard places like

'/home/rozen/lib/python2.1',
'/home/rozen/lib/python2.1/plat-linux2',
'/home/rozen/lib/python2.1/lib-tk',
'/home/rozen/lib/python2.1/lib-dynload'.

How else can I install a new version of any of the
packages in the standard places without overwriting
or renaming them.

In particular, I am trying to use disutils to
distribute a version of _tkinter and Tkinter.py; they
get placed in site-packages, which I think is the
correct place, but they don't get executed because the
usual suspects are searched first.

I guess that I can force the issue by setting the
PYTHONPATH, but I don't know how to do that from
distutils.  And that is not an answer.
msg3559 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-02-28 18:55
Logged In: YES 
user_id=3066

The decision not to allow easy overriding of standard modules is deliberate; this is done to protect the interpreter from accidental name conflicts and the like.

Closed as "Not a Bug".
History
Date User Action Args
2022-04-10 16:03:47adminsetgithub: 34001
2001-02-25 19:48:33rozencreate