virtualenv-api icon indicating copy to clipboard operation
virtualenv-api copied to clipboard

Filter out comments from `pip freeze` output

Open tetsuo-cpp opened this issue 4 years ago • 0 comments

I noticed that sometimes the pip freeze output can return comments, which can yield weird results when querying the installed_packages.

I'm not sure if there are other cases, but this definitely happens if you make an editable install with ve.install("-e blah/"). You get a comment like # Editable install with no version control (ansible-core and 2.11.5) in the pip freeze output.

tetsuo-cpp avatar Sep 30 '21 12:09 tetsuo-cpp