mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 00:25:22 +00:00
commit
a62c74126a
@ -433,6 +433,7 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
|
||||
no_cache_dir=False,
|
||||
cache_dir=None,
|
||||
no_binary=None,
|
||||
disable_version_check=False,
|
||||
**kwargs):
|
||||
'''
|
||||
Install packages with pip
|
||||
@ -604,6 +605,11 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
|
||||
no_cache_dir
|
||||
Disable the cache.
|
||||
|
||||
disable_version_check
|
||||
Pip may periodically check PyPI to determine whether a new version of
|
||||
pip is available to download. Passing True for this option disables
|
||||
that check.
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -756,6 +762,9 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
|
||||
)
|
||||
cmd.extend(['--mirrors', mirror])
|
||||
|
||||
if disable_version_check:
|
||||
cmd.extend(['--disable-pip-version-check'])
|
||||
|
||||
if build:
|
||||
cmd.extend(['--build', build])
|
||||
|
||||
|
@ -901,6 +901,7 @@ def installed(name,
|
||||
use_vt=use_vt,
|
||||
trusted_host=trusted_host,
|
||||
no_cache_dir=no_cache_dir,
|
||||
disable_version_check=True,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user