Skip to content

Commit 88d6839

Browse files
committed
Workaround cython/cython#4172
1 parent 4f30113 commit 88d6839

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,12 @@ def run(self):
375375
# Note: if not using `cythonize`, coverage can be enabled by
376376
# pinning `ext.cython_directives = directives` to each ext in extensions.
377377
# github.com/cython/cython/wiki/enhancements-compilerdirectives#in-setuppy
378-
directives = {"linetrace": False, "language_level": 3}
378+
directives = {"linetrace": False,
379+
"language_level": 3,
380+
# Use cython 0.29.x binop methods.
381+
# See https://github.com/cython/cython/issues/4172
382+
"c_api_binop_methods": True,
383+
}
379384
macros = []
380385
if linetrace:
381386
# https://pypkg.com/pypi/pytest-cython/f/tests/example-project/setup.py

0 commit comments

Comments
 (0)