Skip to content
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

arguments to freeze are used to filter installed packages #858

Closed
wants to merge 1 commit into from
Closed

arguments to freeze are used to filter installed packages #858

wants to merge 1 commit into from

Conversation

AvdN
Copy link

@AvdN AvdN commented Mar 23, 2013

Any arguments to the freeze command used to be discarded. That makes freeze less useful in finding which versions of a few specific packages you have installed, especially if the list is long.

This change makes pip freeze only output that have an argument as part of the package name so you can do:
pip freeze xl pymongo
and get
openpyxl==1.6.1
pymongo==2.5
xlrd==0.9.0
xlutils==1.5.2
xlwt==0.7.4
and not a list of 158 packages. The comparison is done lowercase.

You can of course pipe the output of pip freeze through fgrep , but especially when trying to select multiple patterns in one go, that is not trivial.

that have a part of the name that matches one of the arguments
comparison is lower case
@pnasrat
Copy link
Contributor

pnasrat commented Mar 30, 2013

This needs tests and documentation updates before considering.

I'd also probably argue that we'd want it to be pip freeze --match rather than defaulting to a fuzzy match based on the args.

@qwcode any strong opinion from you on this?

@qwcode
Copy link
Contributor

qwcode commented Mar 30, 2013

not sure, I'm just focused on what's tagged for 1.4 right now, which is mostly about wheel.

@msabramo
Copy link
Contributor

Note that #2234 implements this as well (and does a bunch of other cool stuff).

$ pip freeze pytest pytest-cache
pytest==2.6.4
pytest-cache==1.0

@AvdN AvdN mentioned this pull request Dec 22, 2014
@msabramo
Copy link
Contributor

I'd suggest closing in favor of #2234

@dstufft dstufft closed this May 18, 2016
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: freeze 'pip freeze' related type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants