def use_library(name, version):
 if (name not in PACKAGES):
  raise ValueError(('%s is not a supported package' % name))
 versions = PACKAGES[name][1].keys()
 if (version not in versions):
  raise ValueError(('%s is not a supported version for %s; supported versions are %s' % (version, name, versions)))
 if USING_SDK:
  CheckInstalledLibrary(name, version)
 else:
  InstallLibrary(name, version, explicit=True)

def use_library ( name , version ) : if ( name not in PACKAGES ) : raise ValueError ( ( '%s is not a supported package' % name ) ) versions = PACKAGES [ name ] [ 1 ] . keys ( ) if ( version not in versions ) : raise ValueError ( ( '%s is not a supported version for %s; supported versions are %s' % ( version , name , versions ) ) ) if USING_SDK : CheckInstalledLibrary ( name , version ) else : InstallLibrary ( name , version , explicit = True )
specify a third-party package to use .