Skip to content

Commit c6571bc

Browse files
committed
Upgrade Cython
1 parent ef84370 commit c6571bc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest==3.0.5
22
pytest-benchmark==3.0.0
33
coverage==4.3.1
4-
cython==0.24.1
4+
cython==0.25.2
55
tox==2.5.0

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@
2525
# Remove C file to force Cython recompile.
2626
os.remove(c_path)
2727
if 'test' in sys.argv and platform.python_implementation() == 'CPython':
28-
from Cython.Compiler.Options import directive_defaults
29-
30-
directive_defaults['linetrace'] = True
31-
directive_defaults['binding'] = True
32-
3328
from Cython.Build import cythonize
3429
ext_modules = cythonize(Extension(
3530
"bencoder",
3631
[pyx_path],
3732
define_macros=[('CYTHON_TRACE', '1')]
38-
))
33+
), compiler_directives={
34+
'linetrace': True,
35+
'binding': True
36+
})
3937
else:
4038
from Cython.Build import cythonize
4139
ext_modules = cythonize(Extension(

0 commit comments

Comments
 (0)