Add pip --disable-pip-version-check, to remove pip version warnings

This commit is contained in:
allegroai 2020-01-27 16:23:15 +02:00
parent 788c79a66f
commit 640c83288a
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class SystemPip(PackageManager):
return (command.get_output if output else command.check_call)(stdin=DEVNULL, **kwargs)
def _make_command(self, command):
return Argv(self.bin, '-m', 'pip', *command)
return Argv(self.bin, '-m', 'pip', '--disable-pip-version-check', *command)
def install_flags(self):
if self.indices_args is None:

View File

@ -33,7 +33,7 @@ class VirtualenvPip(SystemPip, PackageManager):
self.python = python
def _make_command(self, command):
return self.session.command(self.bin, "-m", "pip", *command)
return self.session.command(self.bin, "-m", "pip", "--disable-pip-version-check", *command)
def load_requirements(self, requirements):
if isinstance(requirements, dict) and requirements.get("pip"):