mirror of
https://github.com/clearml/clearml-agent
synced 2025-05-31 18:38:24 +00:00
Add pip --disable-pip-version-check, to remove pip version warnings
This commit is contained in:
parent
788c79a66f
commit
640c83288a
@ -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:
|
||||
|
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user