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.

Title: Deprecate site-python in
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, christian.heimes, loewis, pitrou, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2013-10-24 09:11 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
deprecate_site_python.patch pitrou, 2013-10-24 20:19 review
Messages (4)
msg201103 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-10-24 09:11
I suggest deprecating the "site-python" feature from, as proposed by Guido on python-dev:

- if a "site-python" directory is detected and added from, a DeprecationWarning should be emitted
- the docs should mention the deprecation
msg201104 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-10-24 09:14
Guido wrote "I suggest that we remove that feature. (People who want it can always patch up their own $PYTHONPATH.)". It's different than deprecating the feature :-)

I didn't know the feature before you proposed to remove it. Is the site-python thing used in the wild? I never see any OS relying on it.
msg201180 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-10-24 20:19
Here is a patch.
msg201282 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-25 19:40
New changeset 90c56229efb7 by Antoine Pitrou in branch 'default':
Issue #19375: The site module adding a "site-python" directory to sys.path, if it exists, is now deprecated.
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63574
2013-10-25 19:40:36pitrousetstatus: open -> closed
resolution: fixed
stage: resolved
2013-10-25 19:40:21python-devsetnosy: + python-dev
messages: + msg201282
2013-10-24 20:19:33pitrousetfiles: + deprecate_site_python.patch
keywords: + patch
messages: + msg201180
2013-10-24 10:12:03barrysetnosy: + barry
2013-10-24 09:14:26vstinnersetnosy: + vstinner
messages: + msg201104
2013-10-24 09:11:11pitroucreate