Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site.py sets sys.path incorrectly. #34001

Closed
rozen mannequin opened this issue Feb 25, 2001 · 2 comments
Closed

site.py sets sys.path incorrectly. #34001

rozen mannequin opened this issue Feb 25, 2001 · 2 comments

Comments

@rozen
Copy link
Mannequin

rozen mannequin commented Feb 25, 2001

BPO 404130
Nosy @freddrake

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2001-02-28.18:55:39.000>
created_at = <Date 2001-02-25.19:48:33.000>
labels = []
title = 'site.py sets sys.path incorrectly.'
updated_at = <Date 2001-02-28.18:55:39.000>
user = 'https://bugs.python.org/rozen'

bugs.python.org fields:

activity = <Date 2001-02-28.18:55:39.000>
actor = 'fdrake'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2001-02-25.19:48:33.000>
creator = 'rozen'
dependencies = []
files = []
hgrepos = []
issue_num = 404130
keywords = []
message_count = 2.0
messages = ['3558', '3559']
nosy_count = 2.0
nosy_names = ['fdrake', 'rozen']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue404130'
versions = []

@rozen
Copy link
Mannequin Author

rozen mannequin commented Feb 25, 2001

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.

@rozen rozen mannequin closed this as completed Feb 25, 2001
@rozen rozen mannequin closed this as completed Feb 25, 2001
@freddrake
Copy link
Member

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".

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant