36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From a916945eb3e13d01612d0571fbe91083b6b9c943 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Thu, 17 Jun 2021 18:52:24 +0530
|
|
Subject: [PATCH 083/N] distutils: fix msvc9 import
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
---
|
|
Lib/distutils/msvc9compiler.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py
|
|
index a7976fb..c341679 100644
|
|
--- a/Lib/distutils/msvc9compiler.py
|
|
+++ b/Lib/distutils/msvc9compiler.py
|
|
@@ -291,8 +291,6 @@ def query_vcvarsall(version, arch="x86"):
|
|
|
|
# More globals
|
|
VERSION = get_build_version()
|
|
-if VERSION < 8.0:
|
|
- raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
|
|
# MACROS = MacroExpander(VERSION)
|
|
|
|
class MSVCCompiler(CCompiler) :
|
|
@@ -327,6 +325,8 @@ class MSVCCompiler(CCompiler) :
|
|
|
|
def __init__(self, verbose=0, dry_run=0, force=0):
|
|
CCompiler.__init__ (self, verbose, dry_run, force)
|
|
+ if VERSION < 8.0:
|
|
+ raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
|
|
self.__version = VERSION
|
|
self.__root = r"Software\Microsoft\VisualStudio"
|
|
# self.__macros = MACROS
|