def get_build_version():
 prefix = 'MSC v.'
 i = string.find(sys.version, prefix)
 if (i == (-1)):
  return 6
 i = (i + len(prefix))
 (s, rest) = sys.version[i:].split(' ', 1)
 majorVersion = (int(s[:(-2)]) - 6)
 minorVersion = (int(s[2:3]) / 10.0)
 if (majorVersion == 6):
  minorVersion = 0
 if (majorVersion >= 6):
  return (majorVersion + minorVersion)
 return None

def get_build_version ( ) : prefix = 'MSC v.' i = string . find ( sys . version , prefix ) if ( i == ( - 1 ) ) : return 6 i = ( i + len ( prefix ) ) ( s , rest ) = sys . version [ i : ] . split ( ' ' , 1 ) majorVersion = ( int ( s [ : ( - 2 ) ] ) - 6 ) minorVersion = ( int ( s [ 2 : 3 ] ) / 10.0 ) if ( majorVersion == 6 ) : minorVersion = 0 if ( majorVersion >= 6 ) : return ( majorVersion + minorVersion ) return None
return the version of msvc that was used to build python .