Ticket #44945: patch-setup.py.diff
File patch-setup.py.diff, 1008 bytes (added by mndavidoff (Monte Davidoff), 10 years ago) |
---|
-
setup.py
old new 123 123 # Check if Cython is installed or not (requisite) 124 124 try: 125 125 from Cython.Distutils import build_ext 126 from Cython.Compiler.Main import Version126 from Cython.Compiler.Main import version as cython_version 127 127 cmdclass['build_ext'] = build_ext 128 128 except ImportError: 129 129 exit_with_error( 130 130 "You need %(pkgname)s %(pkgver)s or greater to compile PyTables!" 131 131 % {'pkgname': 'Cython', 'pkgver': min_cython_version}) 132 132 133 if Version.version < min_cython_version:133 if cython_version < min_cython_version: 134 134 exit_with_error( 135 135 "At least Cython %s is needed so as to generate extensions!" 136 136 % (min_cython_version)) 137 137 else: 138 138 print("* Found %(pkgname)s %(pkgver)s package installed." 139 % {'pkgname': 'Cython', 'pkgver': Version.version})139 % {'pkgname': 'Cython', 'pkgver': cython_version}) 140 140 141 141 VERSION = open('VERSION').read().strip() 142 142