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.

Author pelson
Recipients docs@python, pelson
Date 2020-07-23.15:22:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595517731.78.0.301651868818.issue41376@roundup.psfhosted.org>
In-reply-to
Content
The documentation for site.getusersitepackages() states at https://docs.python.org/3.10/library/site.html#site.getusersitepackages:

Return the path of the user-specific site-packages directory, USER_SITE. If it is not initialized yet, this function will also set it, respecting PYTHONNOUSERSITE and USER_BASE.


Yet the implementation does not agree:


```
$ python  -c "import site; print(site.getusersitepackages())"
/home/user/.local/lib/python3.7/site-packages

$ PYTHONNOUSERSITE=1 python -c "import site; print(site.getusersitepackages())"
/home/user/.local/lib/python3.7/site-packages
```

(same result for -s and -I flags)
History
Date User Action Args
2020-07-23 15:22:11pelsonsetrecipients: + pelson, docs@python
2020-07-23 15:22:11pelsonsetmessageid: <1595517731.78.0.301651868818.issue41376@roundup.psfhosted.org>
2020-07-23 15:22:11pelsonlinkissue41376 messages
2020-07-23 15:22:11pelsoncreate