Skip to content

Commit 63f47dc

Browse files
committed
Update cython building
1 parent b751418 commit 63f47dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
pyx_files = Path("flask_inputfilter").rglob("*.pyx")
1212

1313
pyx_modules = [
14-
str(path).replace(".pyx", "").replace("/", ".") for path in pyx_files
14+
".".join(path.with_suffix("").parts) for path in pyx_files
1515
]
1616

1717
ext_modules = cythonize(
1818
module_list=[
1919
Extension(
2020
name=module,
21-
sources=[module.replace(".", "/") + ".pyx"],
21+
sources=[str(Path(*module.split(".")).with_suffix(".pyx"))],
2222
extra_compile_args=["-std=c++11"],
2323
language="c++",
2424
)

0 commit comments

Comments
 (0)