python-Levenshtein/levenshtein-0.27.1-cython-cpp.patch
Troy Curtis Jr e2740ed1a9 Update to 0.27.3.
* Fixes rhbz#2411727
* Fix build with the latest Cython by adding the --cplus flag.
2026-01-10 17:30:43 -05:00

12 lines
624 B
Diff

diff -up a/src/Levenshtein/CMakeLists.txt b/src/Levenshtein/CMakeLists.txt
--- a/src/Levenshtein/CMakeLists.txt 2026-01-10 17:00:11.456685025 -0500
+++ b/src/Levenshtein/CMakeLists.txt 2026-01-10 17:00:37.252954218 -0500
@@ -9,7 +9,7 @@ function(create_cython_target _name)
MAIN_DEPENDENCY "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx"
VERBATIM
COMMAND
- Python::Interpreter -m cython "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx"
+ Python::Interpreter -m cython --cplus "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx"
--output-file "${CMAKE_CURRENT_BINARY_DIR}/${_name}.cxx")
set(${_name}