From 4f45e72d0d7cb8f902f781aa3655ab32c40d14a3 Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Thu, 6 Jul 2017 11:04:35 +0300 Subject: [PATCH] setup.py: use print instead of a silly echo() func --- setup.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 7f69abf..a4b4662 100644 --- a/setup.py +++ b/setup.py @@ -144,25 +144,22 @@ def try_building_extension(): try: run_setup(True) except BuildFailed: - def echo(msg=''): - sys.stdout.write(msg + '\n') line = '=' * 74 build_ext_warning = 'WARNING: The C extensions could not be ' \ 'compiled; speedups are not enabled.' - echo(line) - echo(build_ext_warning) - echo('Failure information, if any, is above.') - echo('Retrying the build without the C extension now.') - echo() + print(line) + print(build_ext_warning) + print('Failure information, if any, is above.') + print('Retrying the build without the C extension now.') + print('') run_setup(False) - echo(line) - echo(build_ext_warning) - echo('Plain-Python installation succeeded.') - echo(line) - + print(line) + print(build_ext_warning) + print('Plain-Python installation succeeded.') + print(line) if not (noexts or is_pypy or is_jython): try_building_extension()