Jordan Birdsell has submitted this change and it was merged. Change subject: KUDU-1706 Unable to build from source using Python 3 ......................................................................
KUDU-1706 Unable to build from source using Python 3 Fixed python preflight and postflight scripts to support python version 2 and 3. Converted print statements to have parenthese print(). Replaced file() with preferred open(). Resolved some string concatentation issues. Added universal_newlines=True) to subprocess.Popen in shell function of postflight.py script because in python3 it would expect bytes instead of a string if not set. Tested on python 2.6.6, 2.7.12, 3.5.2 Change-Id: I3fcc92cb185c3dc880e06b4d235c094c8b8cd4cf Reviewed-on: http://gerrit.cloudera.org:8080/5153 Tested-by: Kudu Jenkins Reviewed-by: Jordan Birdsell <[email protected]> --- M thirdparty/postflight.py M thirdparty/preflight.py 2 files changed, 28 insertions(+), 26 deletions(-) Approvals: Jordan Birdsell: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/5153 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3fcc92cb185c3dc880e06b4d235c094c8b8cd4cf Gerrit-PatchSet: 6 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: [email protected] Gerrit-Reviewer: Jordan Birdsell <[email protected]> Gerrit-Reviewer: Kudu Jenkins
