Skip to content

Commit

Permalink
Per requirement global options (#4579)
Browse files Browse the repository at this point in the history
* Stop using a mutable default value

* 📰
  • Loading branch information
pradyunsg authored and dstufft committed Aug 2, 2017
1 parent 281061f commit 573a501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/3830.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Requirement Files not longer pass global options from one package to later packages in the same file.
3 changes: 2 additions & 1 deletion pip/req/req_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,9 @@ def match_markers(self, extras_requested=None):
else:
return True

def install(self, install_options, global_options=[], root=None,
def install(self, install_options, global_options=None, root=None,
prefix=None):
global_options = global_options if global_options is not None else []
if self.editable:
self.install_editable(
install_options, global_options, prefix=prefix)
Expand Down

0 comments on commit 573a501

Please sign in to comment.