Commit 85e3af77 authored by Yamada Hiroyuki's avatar Yamada Hiroyuki
Browse files

Fix: Force regenerate c++ with cython.

It seems that cython changes generated codes based on NumPy version.
parent db999845
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -81,11 +81,9 @@ else:
        extra_compile_args.append("-DCYTHON_TRACE_NOGIL=1")

# Check cythonize or not
cpp_file = rb_source + cpp_ext
pyx_file = rb_source + pyx_ext
use_cython = not os.path.exists(cpp_file) or (
    os.path.exists(pyx_file) and (os.path.getmtime(cpp_file) < os.path.getmtime(pyx_file))
)
use_cython = os.path.exists(pyx_file)

if use_cython:
    suffix = pyx_ext
    setup_requires.extend(["cython>=3.0.10"])