GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-82419: Improve site docs to clarify user site-packages disabling by pppppkun · Pull Request #125083 · python/cpython Conversation
|
| :envvar:`PYTHONNOUSERSITE`). ``None`` means it was disabled for security | ||
| reasons (mismatch between user or group id and effective id) or by an | ||
| administrator. | ||
| administrator. Note that :func:`getusersitepackages` and :func:`getuserbase` |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Let’s add some breathing space:
| administrator. Note that :func:`getusersitepackages` and :func:`getuserbase` | |
| administrator. | |
| Note that :func:`getusersitepackages` and :func:`getuserbase` |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| administrator. | ||
| administrator. Note that :func:`getusersitepackages` and :func:`getuserbase` | ||
| don't take this variable into account. The check for :data:`ENABLE_USER_SITE` and | ||
| modification of ``sys.path`` occurs later. To disable user site-packages, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| modification of ``sys.path`` occurs later. To disable user site-packages, | |
| modification of ``sys.path`` occur later. To disable user site-packages, |
(two things occur)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| don't take this variable into account. The check for :data:`ENABLE_USER_SITE` and | ||
| modification of ``sys.path`` occurs later. To disable user site-packages, | ||
| users are encouraged to create :mod:`sitecustomize` or :mod:`usercustomize`, | ||
| rather than try to edit :file:`Lib/site.py`. Changing :file:`Lib/site.py` |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You should refer to the site module, not to the Lib/site.py file that only exists with that name in cpython repo, not after installation 🙂
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
or maybe something like: rather than try to edit site.py to make it clear we’re talking about the file, not the module (which is something living in the memory of a python interpreter)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| users are encouraged to create :mod:`sitecustomize` or :mod:`usercustomize`, | ||
| rather than try to edit :file:`Lib/site.py`. Changing :file:`Lib/site.py` | ||
| won't work unless recompile Python, but administrators should still be able | ||
| to set :data:`ENABLE_USER_SITE` in a :mod:`sitecustomize` module. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would delete that last sentence, it repeats info.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@merwok Thank you for your feedback, I will revise it later. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.