3131
3232from spython .main import Client
3333
34+ from singularity .analysis .apps import extract_apps
3435from singularity .build .utils import (
3536 stop_if_result_none ,
3637 get_singularity_version ,
3738 test_container
3839)
3940
40-
4141from singularity .analysis .reproduce import get_image_file_hash
4242from singularity .utils import download_repo
4343
@@ -129,6 +129,10 @@ def run_build(build_dir, params, verbose=True):
129129 params ['version' ] = version
130130 pickle .dump (params , open (passing_params ,'wb' ))
131131
132+ # Rename image to be hash
133+ finished_image = "%s/%s.simg" % (os .path .dirname (image ), version )
134+ image = shutil .move (image , finished_image )
135+
132136 final_time = (datetime .now () - start_time ).seconds
133137 bot .info ("Final time of build %s seconds." % final_time )
134138
@@ -140,10 +144,14 @@ def run_build(build_dir, params, verbose=True):
140144
141145 # Get singularity version
142146 singularity_version = Client .version ()
147+ Client .debug = False
143148 inspect = Client .inspect (image ) # this is a string
149+ Client .debug = params ['debug' ]
144150
145151 # Get information on apps
152+ Client .debug = False
146153 app_names = Client .apps (image )
154+ Client .debug = params ['debug' ]
147155 apps = extract_apps (image , app_names )
148156
149157 metrics = {'build_time_seconds' : final_time ,
0 commit comments