Skip to content

Commit

Permalink
Use old_build_ext for Cython 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Jul 20, 2023
1 parent 39844a3 commit 8a100cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [
"wheel",
"setuptools_scm",
"setuptools_git_ls_files",
"cython<3",
"cython",
]

build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
else:
with_cython = True
print('Development mode: Compiling Cython modules from .pyx sources.')
from Cython.Distutils import build_ext
from Cython.Distutils.old_build_ext import old_build_ext as build_ext


class custom_build_ext(build_ext):
Expand Down

0 comments on commit 8a100cb

Please sign in to comment.