B u `Q @sddlZddlZddlZddlmZedZddZddZe dkre ej yeej d dWnRe k rZz4eejed ejej ded WddZ[XYnXdS) N)FileDownloaderz pyomo.commoncCs@d}|tjddtd||f|j|dddS)Nz4https://github.com/omega-icl/mcpp/archive/master.zipsrcZmcppz-Fetching MC++ from %s and installing it to %s)Z dirOffset)Zset_destination_filenameospathjoinloggerinfoZ destinationZget_zip_archive) downloaderurlr >/tmp/pip-unpacked-wheel-n62dbgi3/pyomo/contrib/mcpp/getMCPP.pyget_mcpps rcCst}||t|dS)N)r parse_argsr)argvr r r r mains r__main__rzUsage: %s [--insecure] [target])loggingrsysZpyomo.common.downloadr getLoggerrrr__name__setLevelINFOr Exceptioneprintmessagerbasenameexitr r r r  s