[New-bugs-announce] [issue37349] venv.EnvBuilder environmental variable hooks

Caleb Donovick report at bugs.python.org
Thu Jun 20 10:42:40 EDT 2019


New submission from Caleb Donovick <donovick at cs.stanford.edu>:

Currently EnvBuilder allows for a number of customizations of virtual environments, however, it does not allow for any modifications of the activate script itself (unless one wants to rewrite it completely).  Yet, it is fairly common requirement for python packages is to set some environmental variable e.g., DJANGO_SETTINGS_MODULE=<settings>.

EnvBuilder should be able extend the set of variables which are set and restored on activate / deactivate (or more generally have activate / deactivate hooks).

Originally proposed on python-ideas https://mail.python.org/archives/list/python-ideas@python.org/thread/MJNFEFT4GBVBEETJWZUQM5SS6C34PT3K/

----------
components: Interpreter Core
messages: 346122
nosy: donovick
priority: normal
severity: normal
status: open
title: venv.EnvBuilder environmental variable hooks
type: enhancement

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


More information about the New-bugs-announce mailing list