Skip to content

Commit bbefe06

Browse files
lazkaAlexpux
andcommitted
distutils: fix msvc9 import
Co-authored-by: Алексей <[email protected]>
1 parent 8936254 commit bbefe06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/distutils/msvc9compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ def query_vcvarsall(version, arch="x86"):
291291

292292
# More globals
293293
VERSION = get_build_version()
294-
if VERSION < 8.0:
295-
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
296294
# MACROS = MacroExpander(VERSION)
297295

298296
class MSVCCompiler(CCompiler) :
@@ -327,6 +325,8 @@ class MSVCCompiler(CCompiler) :
327325

328326
def __init__(self, verbose=0, dry_run=0, force=0):
329327
CCompiler.__init__ (self, verbose, dry_run, force)
328+
if VERSION < 8.0:
329+
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
330330
self.__version = VERSION
331331
self.__root = r"Software\Microsoft\VisualStudio"
332332
# self.__macros = MACROS

0 commit comments

Comments
 (0)