Skip to content

Commit fe23170

Browse files
committed
Add support for custom Py-2.7-VS2015
1 parent e0eb806 commit fe23170

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tools/automate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,6 @@ def copy_app(app):
859859

860860
def get_available_python_compilers():
861861
all_python_compilers = OrderedDict([
862-
("2008", VS2008_VCVARS),
863-
("2010", VS2010_VCVARS),
864862
("2015", VS2015_VCVARS),
865863
])
866864
ret_compilers = OrderedDict()

tools/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ def get_version_from_file(header_file):
444444
def get_msvs_for_python(vs_prefix=False):
445445
"""Get MSVS version (eg 2008) for current python running."""
446446
if sys.version_info[:2] == (2, 7):
447+
if 'MSC v.1900' in sys.version:
448+
# custom Python-2.7-VS2015
449+
return "VS2015" if vs_prefix else "2015"
447450
return "VS2008" if vs_prefix else "2008"
448451
elif sys.version_info[:2] == (3, 4):
449452
return "VS2010" if vs_prefix else "2010"

0 commit comments

Comments
 (0)