Skip to content

Commit

Permalink
WIP: drop print() and add print for cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
dememax committed Oct 30, 2024
1 parent eff98b9 commit a2c4b5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def handle_cygwin(path, is_static):
"""Handle the Cygwin case."""
output = subprocess.check_output(['nm', path]).decode('utf-8')
# TODO: Dynamic test!
print(f"handle_cygwin(path={path}, is_static={is_static}): {output!r}")
if (('I __imp_zlibVersion' in output) or ('D __imp_zlibVersion' in output)):
return 1
return 0
Expand All @@ -36,7 +37,6 @@ def main():
parser.add_argument('-p', '--platform')
parser.add_argument('-s', '--static', action='store_true', default=False)
args = parser.parse_args()
print('args:', args)
if args.platform == 'cygwin':
return handle_cygwin(args.path, args.static)
else:
Expand Down

0 comments on commit a2c4b5c

Please sign in to comment.