Skip to content

Conversation

pwschaedler
Copy link
Contributor

Note: I recognize that #85 has already been merged and released. I made the changes in this PR in an equivalent proposal for sparse_dot_topn_for_blocks, so I thought I'd make the same offer in this repository if the maintainers are interested in not having Cython pinned to < 3.0.0.

The release of Cython 3.0 on July 27, 2023 broke the build for this package by introducing breaking changes. This PR addresses those changes and fixes a few imports that no longer work with Cython 3.0. These changes are also backwards compatible for people who decide to build this package using older versions of Cython.

This addresses issue #84 in this repository, as well as a few issues found in other repos.
ParticularMiner/sparse_dot_topn_for_blocks#3
Bergvca/string_grouper#93


Also just because I was curious, if you really didn't want to change the imports and wanted everything to go back to the way it was without pinning the version, you can configure Cython to go back to the old behavior. You have to add Cython to the build-system requires in pyproject.toml, add from Cython.Build import cythonize to setup.py, and then change line 95 to ext_modules=cythonize([array_wrappers_ext, original_ext, threaded_ext], language_level='2'),.

@RUrlus RUrlus merged commit d9e1979 into ing-bank:master Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants