16ZIP_URL = (
'https://github.com/google/protobuf/releases/download/v3.3.0/'
17 'protoc-3.3.0-linux-x86_64.zip')
21 """Create the asset."""
22 local_zip =
'/tmp/protoc.zip'
23 subprocess.check_call([
'curl',
'-L', ZIP_URL,
'-o', local_zip])
24 subprocess.check_call([
'unzip', local_zip,
'-d', target_dir])
28 parser = argparse.ArgumentParser()
29 parser.add_argument(
'--target_dir',
'-t', required=
True)
30 args = parser.parse_args()
34if __name__ ==
'__main__':
def create_asset(target_dir)