Skip to content

Commit

Permalink
Add .pyx to setup.py compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Dec 8, 2023
1 parent 453fb20 commit cb195cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def prep_pxd_py_files():
# We also yield the py_files that have a .pxd file, as we feed these into the cythonize call.
for root, dirs, files in os.walk(ROOT_DIR):
for f in files:
if os.path.splitext(f)[1] == ".py" and f not in ignore_py_files:
if os.path.splitext(f)[1] in [".py", ".pyx"] and f not in ignore_py_files:
yield os.path.join(root, f)
if os.path.splitext(f)[1] == ".pxd":
py_file = os.path.join(root, os.path.splitext(f)[0]) + ".py"
Expand Down

0 comments on commit cb195cf

Please sign in to comment.