Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pipPublic

Commit41f0bc2

Browse files
committed
Update docs for setting verbose/quite in config file or env var
1 parentc8fa87c commit41f0bc2

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

‎docs/html/user_guide.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,15 @@ and ``--no-cache-dir``, falsy values have to be used:
440440
no-compile = no
441441
no-warn-script-location = false
442442
443+
For options which can be repeated like ``--verbose`` and ``--quite``,
444+
a nonnegative integer could be used to represent the level to be specified:
445+
446+
..code-block::ini
447+
448+
[global]
449+
quite = 0
450+
verbose = 2
451+
443452
It is possible to append values to a section within a configuration file such as the pip.ini file.
444453
This is applicable to appending options like ``--find-links`` or ``--trusted-host``,
445454
which can be written on multiple lines:
@@ -469,20 +478,20 @@ pip's command line options can be set with environment variables using the
469478
format ``PIP_<UPPER_LONG_NAME>`` . Dashes (``-``) have to be replaced with
470479
underscores (``_``).
471480

472-
For example, to set the default timeout::
473-
474-
export PIP_DEFAULT_TIMEOUT=60
475-
476-
This is the same as passing the option to pip directly::
481+
For example, setting ``PIP_DEFAULT_TIMEOUT`` to 60 has the same effect as
482+
passing the option to pip directly::
477483

478484
pip --default-timeout=60 [...]
479485

480-
For command line options which can be repeated,use a space to separate
481-
multiple values. For example::
482-
483-
export PIP_FIND_LINKS="http://mirror1.example.com http://mirror2.example.com"
486+
For command line options which can be repeated,if they do not take any argument
487+
like ``--quite`` or ``--verbose``, use a nonnegative integer to represent
488+
the number of repeatition, for instance setting ``PIP_VERBOSE`` to 3 is
489+
equivalent to calling pip with ``-vvv``.
484490

485-
is the same as calling::
491+
Fruitful repeatable options however, can be specified via environment variable
492+
as a space-separated list. For example having ``PIP_FIND_LINKS`` set to
493+
``"http://mirror1.example.com http://mirror2.example.com"`` is the same as
494+
calling ::
486495

487496
pip install --find-links=http://mirror1.example.com --find-links=http://mirror2.example.com
488497

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp