@@ -68,7 +68,9 @@ def parse_args(self):
68
68
parser .add_argument ("--id" , type = str , default = None ,
69
69
help = "ID string to postfix an initconfig file." )
70
70
parser .add_argument ("--dev-pkg" , action = "store_true" ,
71
- help = "Tells tpl-manager to use the dev_pkg environment." )
71
+ help = "Tells tpl-manager to use the dev_pkg environment. " + \
72
+ "Assumes TPLs are for buildcache creation if no --spec is provided. " + \
73
+ "Assumes building from a buildcache if --spec is provided." )
72
74
73
75
self .args = parser .parse_args ()
74
76
@@ -286,7 +288,11 @@ def install_and_config(self):
286
288
if (not self .args .dry_run ):
287
289
install_cmd = SpackCommand ("install" )
288
290
print (f"Running spack -u initconfig { spec } " )
289
- install_cmd ("-u" , "initconfig" , spec )
291
+ install_args = ["-u" , "initconfig" ]
292
+ if (self .args .dev_pkg ):
293
+ # Spec is provided so assumes we are building from a buildcache
294
+ install_args .extend (["--cache-only" , "--no-check-signature" ])
295
+ install_cmd (* install_args , spec )
290
296
print (f"Created { host_config_file } " )
291
297
292
298
if (self .args .ci_run ):
0 commit comments