pip.installed does not pass env_vars when calling freeze to check if package is already installed #46127
Labels
Bug
broken, incorrect, or confusing behavior
P3
Priority 3
severity-low
4th level, cosemtic problems, work around exists
State-Module
Milestone
I have a formula for managing graphite installation which requires PYTHONPATH to be set to a custom directory (without changing the
bin_env
). The state looks something likeRunning this state always results in an output like
or something like this with
test=True
This creates problems in writing dependent states that must only be run in case pip updated the package.
Looking at the code, it looks like
pip freeze
is called before and after installation to check whether the package is installed/needs installation, but whileinstall
is passed env variables,freeze
is not.I am running salt-2017.7.3
I came across a similar bug #37038 but this one is a subset of the issues mentioned there.
The text was updated successfully, but these errors were encountered: