summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distutils/dist.py2
-rw-r--r--distutils/tests/test_dist.py2
-rw-r--r--docs/distutils/configfile.rst2
3 files changed, 3 insertions, 3 deletions
diff --git a/distutils/dist.py b/distutils/dist.py
index cf6a8bf6..1dc25fe5 100644
--- a/distutils/dist.py
+++ b/distutils/dist.py
@@ -357,7 +357,7 @@ Common commands: (see '--help-commands' for more)
# Additional config indicated in the environment
with contextlib.suppress(TypeError):
- yield pathlib.Path(os.getenv("DISTUTILS_EXTRA_CONFIG"))
+ yield pathlib.Path(os.getenv("DIST_EXTRA_CONFIG"))
def parse_config_files(self, filenames=None): # noqa: C901
from configparser import ConfigParser
diff --git a/distutils/tests/test_dist.py b/distutils/tests/test_dist.py
index 3058d942..333ce014 100644
--- a/distutils/tests/test_dist.py
+++ b/distutils/tests/test_dist.py
@@ -491,7 +491,7 @@ class TestMetadata(support.TempdirManager):
jaraco.path.build({'overrides.cfg': '.'}, tmp_path)
filename = tmp_path / 'overrides.cfg'
- monkeypatch.setenv('DISTUTILS_EXTRA_CONFIG', filename)
+ monkeypatch.setenv('DIST_EXTRA_CONFIG', filename)
dist = Distribution()
files = dist.find_config_files()
assert str(filename) in files
diff --git a/docs/distutils/configfile.rst b/docs/distutils/configfile.rst
index e03d6d43..bdd7c455 100644
--- a/docs/distutils/configfile.rst
+++ b/docs/distutils/configfile.rst
@@ -36,7 +36,7 @@ consequences:
:file:`setup.py`
* installers can override anything in :file:`setup.cfg` using the command-line
- options to :file:`setup.py` or by pointing :envvar:`DISTUTILS_EXTRA_CONFIG`
+ options to :file:`setup.py` or by pointing :envvar:`DIST_EXTRA_CONFIG`
to another configuration file
The basic syntax of the configuration file is simple: