@@ -358,8 +358,8 @@ pip allows you to set all command line option defaults in a standard ini
358
358
style config file.
359
359
360
360
The names and locations of the configuration files vary slightly across
361
- platforms. You may have per-user, per-virtualenv or global (shared amongst
362
- all users) configuration:
361
+ platforms. You may have per-user, per-site (e.g per virtualenv) or global
362
+ (shared amongst all users) configuration:
363
363
364
364
**Per-user **:
365
365
@@ -380,11 +380,13 @@ these are located at:
380
380
You can set a custom path location for this config file using the environment
381
381
variable ``PIP_CONFIG_FILE ``.
382
382
383
- **Inside a virtualenv**:
383
+ **Site (e.g inside a virtualenv) **
384
384
385
385
* On Unix and macOS the file is :file: `$VIRTUAL_ENV/pip.conf `
386
386
* On Windows the file is: :file: `%VIRTUAL_ENV%\\ pip.ini `
387
387
388
+ Additionally ``sys.base_prefix `` is searched for a pip config of the same name.
389
+
388
390
**Global **:
389
391
390
392
* On Unix the file may be located in :file: `/etc/pip.conf `. Alternatively
@@ -405,7 +407,7 @@ the following order:
405
407
406
408
1. The global file is read
407
409
2. The per-user file is read
408
- 3. The virtualenv-specific file is read
410
+ 3. The site file is read
409
411
410
412
Each file read overrides any values read from previous files, so if the
411
413
global timeout is specified in both the global file and the per-user file
0 commit comments