From 6be40cffcfa725b4e977bed2a94b8a9eb0186de0 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 4 Feb 2019 12:59:49 -0500 Subject: [PATCH] BLD: pin cython language level to '2' This is a simpler alternative to https://github.com/PyWavelets/pywt/pull/435 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9d627e8a3..9891099a5 100755 --- a/setup.py +++ b/setup.py @@ -163,7 +163,7 @@ def get_cython_sources(use_cython): fd.write('%s = %d\n' % (k, int(v))) -cythonize_opts = {} +cythonize_opts = {'language_level': '2'} if os.environ.get("CYTHON_TRACE"): cythonize_opts['linetrace'] = True cython_macros.append(("CYTHON_TRACE_NOGIL", 1))