[issue37349] venv.EnvBuilder environmental variable hooks

Caleb Donovick report at bugs.python.org
Thu Jun 20 13:32:01 EDT 2019


Caleb Donovick <donovick at cs.stanford.edu> added the comment:

Common python libraries that make use of environmental variables:
- django
- flask
- jupyter
- TensorFlow
This is just off the top my head.  While most developers are probably fine just setting the required variables at a system level that doesn't mean they should.  The whole point of virtual environments is to avoid global state.

Overriding setup scripts is hardly a trivial task.  One has to completely recreate the activate script to achieve the desired behavior.

----------

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


More information about the Python-bugs-list mailing list