summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaan Pelt <daan.pelt@gmail.com>2015-02-27 14:05:36 +0100
committerDaan Pelt <daan.pelt@gmail.com>2015-02-27 14:05:36 +0100
commit5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807 (patch)
tree7e734127dc9bc290a9277f9765d2a08a0857e777 /python
parent03a9dd972ada50eedb83386910cecf02fe8d0e35 (diff)
downloadastra-5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807.tar.gz
astra-5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807.tar.bz2
astra-5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807.tar.xz
astra-5bf060d417bc6428f2b8adf0f0f7aa1b53ba7807.zip
Force Cython to use language level 2 to avoid error with Cython 0.22 and python3
Diffstat (limited to 'python')
-rw-r--r--python/builder.py3
1 files changed, 1 insertions, 2 deletions
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',