-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add --path to pip freeze to support --target installations #6450
Conversation
cf5475e
to
b8caf9a
Compare
I understand the option matches |
How about something like Another option would be to take one or more paths as positional arguments. So omitting that (the current behaviour) |
|
Changed the argument from |
380e7ad
to
c44c9f7
Compare
70a7f3b
to
d9935f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/pip/_internal/commands/freeze.py
Outdated
'--path', | ||
dest='path', | ||
action='append', | ||
help='Use the specified installation path for listing packages') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would end this with "(can be used multiple times)", and then end with a period. I also think it might be clearer to begin the sentence with "Restrict to the ..." or "Use only ..." to make clear that these paths aren't being considered in addition to what is already considered.
news/6404.feature
Outdated
@@ -0,0 +1,2 @@ | |||
Support ``--target`` installations with ``pip freeze`` with the ``--path`` | |||
argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a slight rewording that I think might be better: "Add a --path
argument to pip freeze
to support --target
installations."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! A couple clarifications of my previous comments.
@cjerdonek sorry, I misunderstood your first round of comments on the tests. Submitting another fixup to correct these. |
Since |
@xavfernandez That sounds good. Are you okay with that being handled by a different issue / PR though? |
Sure |
Thanks for all your good work on this, @lkollar, and for your patience since PyCon. :) Looks great! 👍 |
pip freeze
does not support installations in a target directory. This change adds the--path
argument topip freeze
to enable this functionality.Closes: #6404