summarylogtreecommitdiffstats
path: root/0082-fix-msvc9-import.patch
diff options
context:
space:
mode:
authoratomlong2021-08-28 11:19:04 +0800
committeratomlong2021-08-28 13:15:13 +0800
commit89a67c05174951d172252b1db96ff93cc4ec4bcd (patch)
treed8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0082-fix-msvc9-import.patch
parentcf8d8d8771493a2aa8370ed323d06dc733a84181 (diff)
downloadaur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz
Update to 3.9.6
Diffstat (limited to '0082-fix-msvc9-import.patch')
-rw-r--r--0082-fix-msvc9-import.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/0082-fix-msvc9-import.patch b/0082-fix-msvc9-import.patch
new file mode 100644
index 000000000000..0d73ce2b419b
--- /dev/null
+++ b/0082-fix-msvc9-import.patch
@@ -0,0 +1,38 @@
+From 5db67822f24f57c96ef4424c7738aca59e0dd7aa 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 082/N] 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 6934e96..dddb2fd 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
+--
+2.32.0
+