build: fix python util verbose mode logic (#44431)

build: fix verbose mode logic
This commit is contained in:
Shelley Vohr 2024-10-29 16:35:57 +01:00 committed by GitHub
parent 53458da01e
commit 9fc94a162b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 25 deletions

View file

@ -28,16 +28,17 @@ def get_target_arch():
return 'x64'
return arch
def enable_verbose_mode():
def set_verbose_mode(mode):
print('Running in verbose mode')
global verbose_mode
verbose_mode = True
verbose_mode = mode
def is_verbose_mode():
return verbose_mode
def verbose_mode_print(output):
if verbose_mode:
print(output)
def get_zip_name(name, version, suffix=''):
arch = get_target_arch()