aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-03-18 19:56:25 +0200
committerMatti Picus <matti.picus@gmail.com>2020-03-18 19:56:25 +0200
commit3a143d1595a10f017897a7b549543bad0228c107 (patch)
tree8301569c7480282cd815b6fc6eb77291e898353b /lib-python
parentSOCK_NONBLOCK in rsocket (diff)
downloadpypy-3a143d1595a10f017897a7b549543bad0228c107.tar.gz
pypy-3a143d1595a10f017897a7b549543bad0228c107.tar.bz2
pypy-3a143d1595a10f017897a7b549543bad0228c107.zip
backport change for post-msvc2010 compiler versions
Diffstat (limited to 'lib-python')
-rw-r--r--lib-python/2.7/distutils/msvc9compiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-python/2.7/distutils/msvc9compiler.py b/lib-python/2.7/distutils/msvc9compiler.py
index c4f4c30e2b..56ec9d3bc8 100644
--- a/lib-python/2.7/distutils/msvc9compiler.py
+++ b/lib-python/2.7/distutils/msvc9compiler.py
@@ -182,6 +182,9 @@ def get_build_version():
i = i + len(prefix)
s, rest = sys.version[i:].split(" ", 1)
majorVersion = int(s[:-2]) - 6
+ if majorVersion >= 13:
+ # v13 was skipped and should be v14
+ majorVersion += 1
minorVersion = int(s[2:3]) / 10.0
# I don't think paths are affected by minor version in version 6
if majorVersion == 6: