Rev 5313: Do not print tuples from setup.py in Python 2.x. in http://bazaar.launchpad.net/~lifeless/bzr/py3

Robert Collins robertc at robertcollins.net
Mon Jun 21 22:58:50 BST 2010


At http://bazaar.launchpad.net/~lifeless/bzr/py3

------------------------------------------------------------
revno: 5313
revision-id: robertc at robertcollins.net-20100621215849-xiby3pyuyf50ou4t
parent: robertc at robertcollins.net-20100621202121-q30263uqlwvh5n76
committer: Robert Collins <robertc at robertcollins.net>
branch nick: py3
timestamp: Tue 2010-06-22 09:58:49 +1200
message:
  Do not print tuples from setup.py in Python 2.x.
=== modified file 'setup.py'
--- a/setup.py	2010-06-21 20:21:21 +0000
+++ b/setup.py	2010-06-21 21:58:49 +0000
@@ -178,12 +178,12 @@
 except ImportError:
     have_pyrex = False
     # try to build the extension from the prior generated source.
-    print()
+    print("")
     print("The python package 'Pyrex' is not available."
           " If the .c files are available,")
     print("they will be built,"
           " but modifying the .pyx files will not rebuild them.")
-    print()
+    print("")
     from distutils.command.build_ext import build_ext
 else:
     have_pyrex = True
@@ -303,12 +303,12 @@
 ext_modules.append(Extension('bzrlib._patiencediff_c',
                              ['bzrlib/_patiencediff_c.c']))
 if have_pyrex and pyrex_version_info < (0, 9, 6, 3):
-    print()
+    print("")
     print('Your Pyrex/Cython version %s is too old to build the simple_set' % (
         pyrex_version))
     print('and static_tuple extensions.')
     print('Please upgrade to at least Pyrex 0.9.6.3')
-    print()
+    print("")
     # TODO: Should this be a fatal error?
 else:
     # We only need 0.9.6.3 to build _simple_set_pyx, but static_tuple depends
@@ -323,7 +323,7 @@
     print('C extension(s) not found:')
     print('   %s' % ('\n  '.join(unavailable_files),))
     print('The python versions will be used instead.')
-    print()
+    print("")
 
 
 def get_tbzr_py2exe_info(includes, excludes, packages, console_targets,




More information about the bazaar-commits mailing list