aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/msvc.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-04-07 22:19:06 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-04-07 22:19:06 -0400
commit9430e92f888a7c41f295373bd8a6ef8af967e2e1 (patch)
tree4a6e7fe0e042c8f4e876c7d1b3af792dd4266097 /setuptools/msvc.py
parent934d6707b1d8c55c930d458e39b11038e9276a4d (diff)
downloadexternal_python_setuptools-9430e92f888a7c41f295373bd8a6ef8af967e2e1.tar.gz
external_python_setuptools-9430e92f888a7c41f295373bd8a6ef8af967e2e1.tar.bz2
external_python_setuptools-9430e92f888a7c41f295373bd8a6ef8af967e2e1.zip
Move initialization into a single location. Ref #995.
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r--setuptools/msvc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index 1588cd2e..baf2021e 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -987,11 +987,11 @@ class EnvironmentInfo:
"""
Microsoft Windows SDK Tools
"""
+ tools = []
+
if self.vc_ver < 15.0:
bin_dir = 'Bin' if self.vc_ver <= 11.0 else r'Bin\x86'
- tools = [os.path.join(self.si.WindowsSdkDir, bin_dir)]
- else:
- tools = []
+ tools += [os.path.join(self.si.WindowsSdkDir, bin_dir)]
if not self.pi.current_is_x86():
arch_subdir = self.pi.current_dir(x64=True)