Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds --upgrade-recursive option, makes -U non-recursive by default.
fixes pypa#304
- Loading branch information
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 8a38346
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.
Patch works great for me. I hope this gets pulled in soon, the bug with --upgrade is a big headache for our workflow.
'-U' can be added when installing from a requirements file.
supposing the default case of self.upgrade_recursive=False, and that the first item in the requirements file has dependencies,
wouldn't setting self.upgrade here in this loop prevent all but the first top-level requirement from being upgraded?
I think each
InstallRequirement
will need to have anupgrade
property that the logic works off of to keep this straight.