mirror of
https://github.com/clearml/clearml-agent
synced 2025-06-08 23:47:15 +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)
|
return (command.get_output if output else command.check_call)(stdin=DEVNULL, **kwargs)
|
||||||
|
|
||||||
def _make_command(self, command):
|
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):
|
def install_flags(self):
|
||||||
if self.indices_args is None:
|
if self.indices_args is None:
|
||||||
|
@ -33,7 +33,7 @@ class VirtualenvPip(SystemPip, PackageManager):
|
|||||||
self.python = python
|
self.python = python
|
||||||
|
|
||||||
def _make_command(self, command):
|
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):
|
def load_requirements(self, requirements):
|
||||||
if isinstance(requirements, dict) and requirements.get("pip"):
|
if isinstance(requirements, dict) and requirements.get("pip"):
|
||||||
|
Loading…
Reference in New Issue
Block a user