From 5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807 Mon Sep 17 00:00:00 2001 From: Daan Pelt Date: Fri, 27 Feb 2015 14:05:36 +0100 Subject: Force Cython to use language level 2 to avoid error with Cython 0.22 and python3 --- python/builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/builder.py') diff --git a/python/builder.py b/python/builder.py index bdfd092..ddca795 100644 --- a/python/builder.py +++ b/python/builder.py @@ -48,8 +48,7 @@ cfg.close() cmdclass = { } ext_modules = [ ] -language_level = 3 if int(sys.version[0]) > 2 else 2 -ext_modules = cythonize("astra/*.pyx", language_level=language_level) +ext_modules = cythonize("astra/*.pyx", language_level=2) cmdclass = { 'build_ext': build_ext } setup (name = 'PyASTRAToolbox', -- cgit v1.2.3