def get_msvcr():
 msc_pos = sys.version.find('MSC v.')
 if (msc_pos != (-1)):
  msc_ver = sys.version[(msc_pos + 6):(msc_pos + 10)]
  if (msc_ver == '1300'):
   return ['msvcr70']
  elif (msc_ver == '1310'):
   return ['msvcr71']
  elif (msc_ver == '1400'):
   return ['msvcr80']
  elif (msc_ver == '1500'):
   return ['msvcr90']
  elif (msc_ver == '1600'):
   return ['msvcr100']
  else:
   raise ValueError(('Unknown MS Compiler version %s ' % msc_ver))

def get_msvcr ( ) : msc_pos = sys . version . find ( 'MSC v.' ) if ( msc_pos != ( - 1 ) ) : msc_ver = sys . version [ ( msc_pos + 6 ) : ( msc_pos + 10 ) ] if ( msc_ver == '1300' ) : return [ 'msvcr70' ] elif ( msc_ver == '1310' ) : return [ 'msvcr71' ] elif ( msc_ver == '1400' ) : return [ 'msvcr80' ] elif ( msc_ver == '1500' ) : return [ 'msvcr90' ] elif ( msc_ver == '1600' ) : return [ 'msvcr100' ] else : raise ValueError ( ( 'Unknown MS Compiler version %s ' % msc_ver ) )
include the appropriate msvc runtime library if python was built with msvc 7 .