File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11recursive-include singularity/templates *
22recursive-include singularity/static *
3- recursive-include singularity/scripts *
3+ recursive-include singularity/build *
44recursive-include singularity/testing *
Original file line number Diff line number Diff line change 1818
1919 # Data files
2020 include_package_data = True ,
21-
2221 zip_safe = False ,
2322
2423 # Details
Original file line number Diff line number Diff line change 5959def get_storage_service ():
6060 credentials = GoogleCredentials .get_application_default ()
6161 return build ('storage' , 'v1' , credentials = credentials )
62+
63+
64+ def get_compute_service ():
65+ credentials = GoogleCredentials .get_application_default ()
66+ return build ('compute' , 'v1' , credentials = credentials )
6267
68+
6369def get_bucket (storage_service ,bucket_name ):
6470 req = storage_service .buckets ().get (bucket = bucket_name )
6571 return req .execute ()
Original file line number Diff line number Diff line change 3939######################################################################################
4040
4141
42- def check_install (software = "singularity" ):
42+ def check_install (software = None ):
4343 '''check_install will attempt to run the singularity command, and return an error
4444 if not installed. The command line utils will not run without this check.
4545 '''
46-
46+ if software == None :
47+ software = "singularity"
4748 cmd = [software ,'--version' ]
48- version = run_command (cmd ,error_message = "Cannot find singularity . Is it installed?" )
49+ version = run_command (cmd ,error_message = "Cannot find %s . Is it installed?" % software )
4950 if version != None :
5051 bot .logger .info ("Found %s version %s" ,software .upper (),version )
5152 return True
You can’t perform that action at this time.
0 commit comments