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

build: fix verbose mode logic

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2024-10-29 18:10:43 +01:00 committed by GitHub
parent a280a592ec
commit 758c5a25f8
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()