aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-08-02 09:41:08 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-08-02 09:41:16 -0400
commit616e129944d87e578fe02146f07f72603a4c0124 (patch)
tree76c7bf9f09dbcd9f78ff34e9c01c111d00e952f5
parent0bb6c6bc47823764649430fca34fc6475c0a42d7 (diff)
downloadexternal_python_setuptools-616e129944d87e578fe02146f07f72603a4c0124.tar.gz
external_python_setuptools-616e129944d87e578fe02146f07f72603a4c0124.tar.bz2
external_python_setuptools-616e129944d87e578fe02146f07f72603a4c0124.zip
In _msvccompiler.MSVCCompiler.spawn, use correct capitalization for PATH environment variable. Fixes failing test and fixes pypa/setuptools#2257.
-rw-r--r--distutils/_msvccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils/_msvccompiler.py b/distutils/_msvccompiler.py
index ef0f0b56..2d56ee0a 100644
--- a/distutils/_msvccompiler.py
+++ b/distutils/_msvccompiler.py
@@ -503,7 +503,7 @@ class MSVCCompiler(CCompiler) :
log.debug("skipping %s (up-to-date)", output_filename)
def spawn(self, cmd):
- env = dict(os.environ, path=self._paths)
+ env = dict(os.environ, PATH=self._paths)
return super().spawn(cmd, env=env)
# -- Miscellaneous methods -----------------------------------------