Repository: thrift Updated Branches: refs/heads/master bf0b6291f -> 1823b59ce
THRIFT-2428: Python 3 setup.py support Client: py Patch: Nathan Van Gheem Github Pull Request: This closes #89 ---- commit 89838fb1ff173eae6d81312e4e73e0ac2adc049d Author: Nathan Van Gheem <[email protected]> Date: 2014-03-27T17:35:10Z python 3 support Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/1823b59c Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/1823b59c Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/1823b59c Branch: refs/heads/master Commit: 1823b59cedd1bd35e11831f08565b89994a8cbaf Parents: bf0b629 Author: jfarrell <[email protected]> Authored: Thu Mar 27 13:56:04 2014 -0400 Committer: jfarrell <[email protected]> Committed: Thu Mar 27 13:56:04 2014 -0400 ---------------------------------------------------------------------- lib/py/setup.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/1823b59c/lib/py/setup.py ---------------------------------------------------------------------- diff --git a/lib/py/setup.py b/lib/py/setup.py index c196415..5d2cf8a 100644 --- a/lib/py/setup.py +++ b/lib/py/setup.py @@ -42,13 +42,13 @@ class ve_build_ext(build_ext): def run(self): try: build_ext.run(self) - except DistutilsPlatformError, x: + except DistutilsPlatformError as x: raise BuildFailed() def build_extension(self, ext): try: build_ext.build_extension(self, ext) - except ext_errors, x: + except ext_errors as x: raise BuildFailed() def run_setup(with_binary): @@ -88,17 +88,18 @@ def run_setup(with_binary): 'Topic :: Software Development :: Libraries', 'Topic :: System :: Networking' ], + use_2to3 = True, **extensions ) try: run_setup(True) except BuildFailed: - print - print '*' * 80 - print "An error occured while trying to compile with the C extension enabled" - print "Attempting to build without the extension now" - print '*' * 80 - print + print() + print('*' * 80) + print("An error occured while trying to compile with the C extension enabled") + print("Attempting to build without the extension now") + print('*' * 80) + print() run_setup(False)
