Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 4434012

Browse files
committed
C++11 requires Visual Studio 2013 (12.0) or higher
1 parent c4e6a51 commit 4434012

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@
6464
int(get_build_version() * 10) % 10
6565
)
6666
try:
67-
os.environ[vscomntools_env] = os.environ['VS110COMNTOOLS']
67+
os.environ[vscomntools_env] = os.environ['VS120COMNTOOLS']
6868
except KeyError:
69-
distutils.log.warn('You probably need Visual Studio 2012 (11.0) '
69+
distutils.log.warn('You probably need Visual Studio 2013 (12.0) '
7070
'or higher')
7171
from distutils import msvccompiler, msvc9compiler
72-
if msvccompiler.get_build_version() < 11.0:
73-
msvccompiler.get_build_version = lambda: 11.0
74-
if get_build_version() < 11.0:
75-
msvc9compiler.get_build_version = lambda: 11.0
76-
msvc9compiler.VERSION = 11.0
72+
if msvccompiler.get_build_version() < 12.0:
73+
msvccompiler.get_build_version = lambda: 12.0
74+
if get_build_version() < 12.0:
75+
msvc9compiler.get_build_version = lambda: 12.0
76+
msvc9compiler.VERSION = 12.0
7777
# Workaround http://bugs.python.org/issue4431 under Python <= 2.6
7878
if sys.version_info < (2, 7):
7979
def spawn(self, cmd):

0 commit comments

Comments
 (0)