def get_binary(platform): url = BIN_URL url=url.replace("$PLATFORM",platform) if (is_development): url=url.replace("$TYPE","D") url=url.replace("CURRENT","Development") else: from detect import detect_latest_version url=url.replace("$TYPE",detect_latest_version()) info( "Downloading binaries for platform \"" + platform + "\" to " + installDir + " from " + url) wget(url, platform+".tar.gz",CONSOLE)
def getFramework(installDir,is_development): url=None os.chdir(installDir) if (not is_development): from detect import detect_latest_version url=FRAMEWORK_URL url=url.replace("$TYPE",detect_latest_version()) info("Downloading birch framework to " + installDir + " from " + url) # elif (not is_development and is_mini): # # url=ARGS.MINI_URL # url=url.replace("$TYPE",ARGS.NEWEST_VERSION) # info( "Downloading miniBirch framework to " + installDir + " from " + url) elif(is_development ): url=FRAMEWORK_URL url=url.replace("$TYPE","D") url=url.replace("CURRENT","Development") info( "Downloading development framework to " + installDir + " from " + url) # elif(is_development and is_mini): # url=ARGS.MINI_URL # url=url.replace("$TYPE","D") # url=url.replace("CURRENT","Development") # info( "Downloading miniBirch development framework to " + installDir + " from " + url) wget(url, "framework.tar.gz",CONSOLE) return os.path.lexists( os.path.join(installDir, "framework.tar.gz") )