aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/options.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-12-29 18:15:45 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-04 12:50:41 +0000
commit8247c49a22f8d35bdac949948e25432800ff3d5b (patch)
tree59be83f7ce75a0d90247cc45f1bc415f8a23b5ee /build_scripts/options.py
parentbd2d93163d0de9352b0962c45b0d674da0939cc3 (diff)
build_scripts: replace print by distutils.log
Change-Id: I1106598719b48650847b08637e0caf6677cb26a0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a35afc89a911612b4de3c71a8717f1fb74a39455) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'build_scripts/options.py')
-rw-r--r--build_scripts/options.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/build_scripts/options.py b/build_scripts/options.py
index b2dfd448e..ab45c915c 100644
--- a/build_scripts/options.py
+++ b/build_scripts/options.py
@@ -308,10 +308,10 @@ class DistUtilsCommandMixin(object):
if not self.cmake:
self.cmake = find_executable("cmake")
if not self.cmake:
- print("cmake could not be found.")
+ log.error("cmake could not be found.")
return False
if not os.path.exists(self.cmake):
- print("'{}' does not exist.".format(self.cmake))
+ log.error(f"'{self.cmake}' does not exist.")
return False
if not self.qmake:
@@ -319,21 +319,21 @@ class DistUtilsCommandMixin(object):
if not self.qmake:
self.qmake = find_executable("qmake-qt5")
if not self.qmake:
- print("qmake could not be found.")
+ log.error("qmake could not be found.")
return False
if not os.path.exists(self.qmake):
- print("'{}' does not exist.".format(self.qmake))
+ log.error(f"'{self.qmake}' does not exist.")
return False
if not self.make_spec:
self.make_spec = _AVAILABLE_MKSPECS[0]
if self.make_spec not in _AVAILABLE_MKSPECS:
- print('Invalid option --make-spec "{}". Available values are {}'.format(self.make_spec,
- _AVAILABLE_MKSPECS))
+ log.error(f'Invalid option --make-spec "{self.make_spec}". '
+ f'Available values are {_AVAILABLE_MKSPECS}')
return False
if OPTION["JOBS"] and sys.platform == 'win32' and self.no_jom:
- print("Option --jobs can only be used with jom on Windows.")
+ log.error("Option --jobs can only be used with jom on Windows.")
return False
return True