MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_msvs_for_python

Function get_msvs_for_python

tools/common.py:468–486  ·  view source on GitHub ↗

Get MSVS version (eg 2008) for current python running.

(vs_prefix=False)

Source from the content-addressed store, hash-verified

466
467
468def get_msvs_for_python(vs_prefix=False):
469 """Get MSVS version (eg 2008) for current python running."""
470 if sys.version_info[:2] == (2, 7):
471 return "VS2008" if vs_prefix else "2008"
472 elif sys.version_info[:2] == (3, 4):
473 return "VS2010" if vs_prefix else "2010"
474 elif sys.version_info[:2] == (3, 5):
475 return "VS2015" if vs_prefix else "2015"
476 elif sys.version_info[:2] == (3, 6):
477 return "VS2015" if vs_prefix else "2015"
478 elif sys.version_info[:2] == (3, 7):
479 return "VS2015" if vs_prefix else "2015"
480 elif sys.version_info[:2] == (3, 8):
481 return "VS2015" if vs_prefix else "2015"
482 elif sys.version_info[:2] == (3, 9):
483 return "VS2015" if vs_prefix else "2015"
484 else:
485 print("ERROR: This version of Python is not supported")
486 sys.exit(1)
487
488
489_detect_cef_binaries_libraries_dir()

Callers 4

fix_cef_include_filesFunction · 0.85
get_vcvars_for_pythonFunction · 0.85
get_library_dirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected