@@ -499,8 +499,8 @@ pip allows you to set all command line option defaults in a standard ini
499
499
style config file.
500
500
501
501
The names and locations of the configuration files vary slightly across
502
- platforms. You may have per-user, per-virtualenv or global (shared amongst
503
- all users) configuration:
502
+ platforms. You may have per-user, per-site (e.g per virtualenv) or global
503
+ (shared amongst all users) configuration:
504
504
505
505
**Per-user **:
506
506
@@ -521,11 +521,13 @@ To find its location:
521
521
You can set a custom path location for this config file using the environment
522
522
variable ``PIP_CONFIG_FILE ``.
523
523
524
- **Inside a virtualenv**:
524
+ **Site (e.g inside a virtualenv) **
525
525
526
526
* On Unix and macOS the file is :file: `$VIRTUAL_ENV/pip.conf `
527
527
* On Windows the file is: :file: `%VIRTUAL_ENV%\\ pip.ini `
528
528
529
+ Additionally ``sys.base_prefix `` is searched for a pip config of the same name.
530
+
529
531
**Global **:
530
532
531
533
* On Unix the file may be located in :file: `/etc/pip.conf `. Alternatively
@@ -546,7 +548,7 @@ the following order:
546
548
547
549
1. The global file is read
548
550
2. The per-user file is read
549
- 3. The virtualenv-specific file is read
551
+ 3. The site file is read
550
552
551
553
Each file read overrides any values read from previous files, so if the
552
554
global timeout is specified in both the global file and the per-user file
0 commit comments