-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support for custom environment variables #1124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Support this, it would be a really good idea. You could just add a way to read env variables from a config file to easily implement it
… On Jan 23, 2018, at 8:31 PM, Roman Vaughan ***@***.***> wrote:
Hi, virtualenv doesn't provide a mechanism for setting up environment variables and tearing them down again after deactivate.
A use case would be allowing setting of PYTHON_EGG_CACHE to $VIRTUAL_ENV/.python-egg (related issue: #459).
I'm aware there is the possibility of using autoenv or direnv to setup environment variabls for me. but they fall outside the scope of invoking $VIRTUAL_ENV/bin/activate and would require manually modifying the activate file if I wish to keep it all contained within a virtual env.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
I would really appreciate this feature. It would allow me to consolidate multiple configure files into venv. For my purposes, it would be ideal to placing a file, say
and then having the activate and deactivate scripts process this file to set/unset the specified variables. |
This would be really nice. We have some environment variables, which are virtual env specific, and would have liked to be set when activating the environment. Those variables could be defined on environment creation like this for example: virtualenv --env VARNAME=value ${VENV_PATH} |
Seems no longer an issue as no one reported it in 3 years. |
Hi, virtualenv doesn't provide a mechanism for setting up environment variables and tearing them down again after deactivate.
A use case would be allowing setting of
PYTHON_EGG_CACHE
to$VIRTUAL_ENV/.python-egg
(related issue: #459).I'm aware there is the possibility of using
autoenv
ordirenv
to setup environment variabls for me. but they fall outside the scope of invoking$VIRTUAL_ENV/bin/activate
and would require manually modifying the activate file if I wish to keep it all contained within a virtual env.The text was updated successfully, but these errors were encountered: