wannesm / dtaidistance

Time series distances: Dynamic Time Warping (fast DTW implementation in C)
Other
1.08k stars 184 forks source link

Fix build for Cython v3.0.0 #198

Closed probberechts closed 1 year ago

probberechts commented 1 year ago

Tested with Cython 0.29.36 and 3.0.0.

Fixes #195

probberechts commented 1 year ago

What broke it is the default language_level setting changing from "2" to "3str" in Cython 3.0.0.

Cython 3.0 now uses Python 3 syntax and semantics by default, which previously required setting the language_level directive to either 3 or 3str. The new default setting is now language_level=3str, which means Python 3 semantics, but unprefixed strings are str objects, i.e. unicode text strings under Python 3 and byte strings under Python 2.7. -- https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html