opscode/cookbooks — pull request #356 by recursify (2012-02-29 23:43:48+00:00)
Title: Fix Python pip provider to compare w/ virtualenv packages, not global packages

The main cause of this bug is that the "pip freeze" command doesn't seem to respect the --environment flag, and will package versions for GLOBAL site packages. At least that's the case for me.

:> pip freeze -E /path/to/my/env
(outputs site packages... no!!!)

:> /path/to/my/env/bin/pip
(expected output, only local packages)

The fix is to use the virtualenv pip command in /bin where appropriate.

Can someone please:

- confirm the issue
- confirm that my patch fixes the issue

Let me know if you need more info.