Skip to content

Commit

Permalink
Do not suppress error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Jul 23, 2024
1 parent 744557c commit a463ba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def copy_built_to_pycfml_dist():
from_path = os.path.join(build_abspath, f'*.{shared_lib_ext}')
to_path = package_abspath
cmd = f'cp {from_path} {to_path}'
cmd = cmd + ' || true' # allows to suppress the error message if no files are found
#cmd = cmd + ' || true' # allows to suppress the error message if no files are found
lines.append(cmd)
script_name = f'{sys._getframe().f_code.co_name}.sh'
_write_lines_to_file(lines, script_name)
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def change_runpath_for_built_pycfml():
cmd = cmd.replace('{NEW}', new_rpath)
cmd = cmd.replace('{PATH}', path)
cmd = cmd.replace('{EXT}', shared_lib_ext)
cmd = cmd + ' || true' # allows to suppress the error message if no files are found
#cmd = cmd + ' || true' # allows to suppress the error message if no files are found
lines.append(cmd)
for lib in dependent_libs:
old_lib = lib['old']
Expand All @@ -1114,7 +1114,7 @@ def change_runpath_for_built_pycfml():
cmd = cmd.replace('{NEW}', new_lib)
cmd = cmd.replace('{PATH}', path)
cmd = cmd.replace('{EXT}', shared_lib_ext)
cmd = cmd + ' || true' # allows to suppress the error message if no files are found
#cmd = cmd + ' || true' # allows to suppress the error message if no files are found
lines.append(cmd)
else:
msg = _echo_msg(f"Changing runpath is not needed for platform '{_platform()}'")
Expand Down

0 comments on commit a463ba6

Please sign in to comment.