8000 Fix compilation under cython 3. by rainwoodman · Pull Request #41530 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Fix compilation under cython 3. #41530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Workaround cython/cython#4172
  • Loading branch information
rainwoodman committed May 18, 2021
commit 88d6839e23d08291ca3aef7502aa414dd56726b3
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,12 @@ def run(self):
# Note: if not using `cythonize`, coverage can be enabled by
# pinning `ext.cython_directives = directives` to each ext in extensions.
# github.com/cython/cython/wiki/enhancements-compilerdirectives#in-setuppy
directives = {"linetrace": False, "language_level": 3}
directives = {"linetrace": False,
"language_level": 3,
# Use cython 0.29.x binop methods.
# See https://github.com/cython/cython/issues/4172
"c_api_binop_methods": True,
}
macros = []
if linetrace:
# https://pypkg.com/pypi/pytest-cython/f/tests/example-project/setup.py
Expand Down
0