summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distutils/dist.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/distutils/dist.py b/distutils/dist.py
index 25227584..cf6a8bf6 100644
--- a/distutils/dist.py
+++ b/distutils/dist.py
@@ -324,14 +324,14 @@ Common commands: (see '--help-commands' for more)
should be parsed. The filenames returned are guaranteed to exist
(modulo nasty race conditions).
- There are three possible config files: distutils.cfg in the
- Distutils installation directory (ie. where the top-level
- Distutils __inst__.py file lives), a file in the user's home
- directory named .pydistutils.cfg on Unix and pydistutils.cfg
- on Windows/Mac; and setup.cfg in the current directory.
-
- The file in the user's home directory can be disabled with the
- --no-user-cfg option.
+ There are multiple possible config files:
+ - distutils.cfg in the Distutils installation directory (i.e.
+ where the top-level Distutils __inst__.py file lives)
+ - a file in the user's home directory named .pydistutils.cfg
+ on Unix and pydistutils.cfg on Windows/Mac; may be disabled
+ with the ``--no-user-cfg`` option
+ - setup.cfg in the current directory
+ - a file named by an environment variable
"""
check_environ()
files = [str(path) for path in self._gen_paths() if path.is_file()]
@@ -355,6 +355,7 @@ Common commands: (see '--help-commands' for more)
# All platforms support local setup.cfg
yield pathlib.Path('setup.cfg')
+ # Additional config indicated in the environment
with contextlib.suppress(TypeError):
yield pathlib.Path(os.getenv("DISTUTILS_EXTRA_CONFIG"))