[issue38238] site.py reporting user site info even if ENABLE_USER_SITE=False

2019-09-23 Thread Christian Heimes
Christian Heimes added the comment: getusersitepackages() and getuserbase() don't take ENABLE_USER_SITE into account. The function simply return the location of the user site-package directory independently of the value of ENABLE_USER_SITE. The check for ENABLE_USER_SITE and modification of

[issue38238] site.py reporting user site info even if ENABLE_USER_SITE=False

2019-09-20 Thread Barry Muldrey
Change by Barry Muldrey : -- keywords: +patch pull_requests: +15888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16303 ___ Python tracker ___

[issue38238] site.py reporting user site info even if ENABLE_USER_SITE=False

2019-09-20 Thread Barry Muldrey
New submission from Barry Muldrey : site info is accessed externally via getusersitepackages() and getuserbase()... for example see "pip/_internal/locations.py" If ENABLE_USER_SITE is set to "False," or otherwise disabled, accesses to these methods should return '' or None (shouldn't they?).