File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -859,8 +859,6 @@ def copy_app(app):
859859
860860def 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 ()
Original file line number Diff line number Diff line change @@ -444,6 +444,9 @@ def get_version_from_file(header_file):
444444def 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"
You can’t perform that action at this time.
0 commit comments