You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2017/10/22 17:53:49 UTC

[kudu-CR] [build-support] updates for python3 compatibility

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8353


Change subject: [build-support] updates for python3 compatibility
......................................................................

[build-support] updates for python3 compatibility

Updated python scripts in build-support to be compatable with Python3.

Change-Id: If9f5f8814f3d21f4b184dc6d9ca658d660addba6
---
M build-support/gen_version_info.py
M build-support/kudu_util.py
2 files changed, 16 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/53/8353/1
-- 
To view, visit http://gerrit.cloudera.org:8080/8353
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If9f5f8814f3d21f4b184dc6d9ca658d660addba6
Gerrit-Change-Number: 8353
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [build-support] updates for python3 compatibility

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has abandoned this change. ( http://gerrit.cloudera.org:8080/8353 )

Change subject: [build-support] updates for python3 compatibility
......................................................................


Abandoned

It seems there are other scripts places in build-support which needs fixing.  In some places there are incompatibilities like xrange() --> range(), raw_input() --> input(), iteritem() --> items(), etc.  That could be fixed using 'try: ... except NameError: ...' construct which is ugly.

Using 'from six.moves import ...' does not look good neither.

Probably, it's better just keep it python2-style and transition to python-3, if needed.  Meanwhile, just set the PATH env variable to point to python2, never at python3.
-- 
To view, visit http://gerrit.cloudera.org:8080/8353
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: If9f5f8814f3d21f4b184dc6d9ca658d660addba6
Gerrit-Change-Number: 8353
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins