Formula 'virtualenvwrapper' : virtualenvwrapper.sh overrides environment variables with hardcoded values. #5827
Replies: 2 comments 1 reply
-
The original file is at
They are user overridable (except for $ sh -x $(which virtualenvwrapper.sh) 2>&1 | grep 'export VIRTUALENVWRAPPER_VIRTUALENV='
+ export VIRTUALENVWRAPPER_VIRTUALENV=/opt/homebrew/Cellar/virtualenvwrapper/6.1.1/libexec/bin/virtualenv
$ VIRTUALENVWRAPPER_VIRTUALENV=override sh -x $(which virtualenvwrapper.sh) 2>&1 | grep 'export VIRTUALENVWRAPPER_VIRTUALENV='
+ export VIRTUALENVWRAPPER_VIRTUALENV=override |
Beta Was this translation helpful? Give feedback.
-
@branchvincent Yes, it does work like you say. Why is |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
The following is what's in the
virtualenvwrapper.sh
file that Brew installs:This is not the same as the corresponding file in the original package, which sets only those environment variables that are not set. Brew's virtualenvwrapper formula does not function as intended because it overrides the environment variable values set by the user.
Why is Brew's
virtualenvwrapper.sh
not the same as the one in the original package?The file is apparently created by the following block in Formula/v/virtualenvwrapper.rb in homebrew-core:
Beta Was this translation helpful? Give feedback.
All reactions