Skip to content

Commit cf492ae

Browse files
committed
move language_level Cython setting to setup.py
as suggested by tacaswell in gh-451
1 parent 493a8a1 commit cf492ae

5 files changed

Lines changed: 4 additions & 6 deletions

File tree

pywt/_extensions/_cwt.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: language_level=3, boundscheck=False, wraparound=False
1+
#cython: boundscheck=False, wraparound=False
22
from . cimport common
33
from . cimport c_wt
44
from .common cimport pywt_index_t, MODE

pywt/_extensions/_dwt.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: language_level=3, boundscheck=False, wraparound=False
1+
#cython: boundscheck=False, wraparound=False
22
from . cimport common
33
from . cimport c_wt
44
from .common cimport pywt_index_t, MODE

pywt/_extensions/_pywt.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#cython: language_level=3
21
# Copyright (c) 2006-2012 Filip Wasilewski <http://en.ig.ma/>
32
# Copyright (c) 2012-2018 The PyWavelets Developers
43
# <https://github.com/PyWavelets/pywt>

pywt/_extensions/_swt.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: language_level=3, boundscheck=False, wraparound=False
1+
#cython: boundscheck=False, wraparound=False
22
from . cimport common
33
from . cimport c_wt
44

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ def get_cython_sources(use_cython):
162162
for k, v in py_defines.items():
163163
fd.write('%s = %d\n' % (k, int(v)))
164164

165-
166-
cythonize_opts = {}
165+
cythonize_opts = {'language_level': '3'}
167166
if os.environ.get("CYTHON_TRACE"):
168167
cythonize_opts['linetrace'] = True
169168
cython_macros.append(("CYTHON_TRACE_NOGIL", 1))

0 commit comments

Comments
 (0)