@@ -179,15 +179,20 @@ def main(
179
179
if error_log_file :
180
180
logger .info ("logging errors to %s" , error_log_file )
181
181
182
- logger .info (f"primary settings file: { settings_file } " )
183
- logger .info (f"per-package settings dir: { settings_dir } " )
184
- logger .info (f"variant: { variant } " )
185
- logger .info (f"patches dir: { patches_dir } " )
186
- logger .info (f"maximum concurrent jobs: { jobs } " )
187
- logger .info (f"constraints file: { constraints_file } " )
188
- logger .info (f"wheel server url: { wheel_server_url } " )
189
- logger .info (f"network isolation: { network_isolation } " )
190
- overrides .log_overrides ()
182
+ # if ctx.invoked_subcommand is None
183
+ if ctx .invoked_subcommand is not None :
184
+ cmd = main .commands [str (ctx .invoked_subcommand )]
185
+ do_show = getattr (cmd , "_fromager_show_build_settings" , False )
186
+ if do_show :
187
+ logger .info (f"primary settings file: { settings_file } " )
188
+ logger .info (f"per-package settings dir: { settings_dir } " )
189
+ logger .info (f"variant: { variant } " )
190
+ logger .info (f"patches dir: { patches_dir } " )
191
+ logger .info (f"maximum concurrent jobs: { jobs } " )
192
+ logger .info (f"constraints file: { constraints_file } " )
193
+ logger .info (f"wheel server url: { wheel_server_url } " )
194
+ logger .info (f"network isolation: { network_isolation } " )
195
+ overrides .log_overrides ()
191
196
192
197
if network_isolation and not SUPPORTS_NETWORK_ISOLATION :
193
198
ctx .fail (f"network isolation is not available: { NETWORK_ISOLATION_ERROR } " )
0 commit comments