[New-bugs-announce] [issue38289] Add an option to point to an additional "site" directory

Michał Fronczyk report at bugs.python.org
Thu Sep 26 13:59:03 EDT 2019


New submission from Michał Fronczyk <fronczyk at gmail.com>:

An environment variable to point to an additional site-packages directory (without disabling the one in Python itself) location would allow having different sets of extra packages that can be enabled by the users in their or shared Python installations.

It'd be helpful in situations where we'd like other teams to maintain their sets of extra packages that could be easily added by just pointing the interpreter to the location of the additional site-packages dir that would fill the rest of the sys.path using the path configuration files if needed.

Right now site.py doesn't seem to allow that and modifying it would mean that the extra packages can be used only with the modified installations of Python. 

Using PYTHONPATH is not ideal because it doesn't look for the path configuration files (.pth), thus you can't just point to a single location that would expand itself to the additional paths.

----------
components: Library (Lib)
messages: 353332
nosy: Michał Fronczyk
priority: normal
severity: normal
status: open
title: Add an option to point to an additional "site" directory
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38289>
_______________________________________


More information about the New-bugs-announce mailing list