Skip to content

Commit eb61cca

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ 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+
"c_api_binop_methods": True, # https://github.com/cython/cython/issues/4172
381+
}
379382
macros = []
380383
if linetrace:
381384
# https://pypkg.com/pypi/pytest-cython/f/tests/example-project/setup.py

0 commit comments

Comments
 (0)