summaryrefslogtreecommitdiff
path: root/xmake/rules/python
diff options
context:
space:
mode:
authorWu, Zhenyu <[email protected]>2025-08-22 20:34:50 +0800
committerWu, Zhenyu <[email protected]>2025-08-22 20:37:17 +0800
commit761a024e72a2ff445758f677641a781df193838b (patch)
tree99ee1246543045587c1a7eeb36be35f101b118a1 /xmake/rules/python
parent6c32c626c5f251728c26a5642e11c8c1943bd6b9 (diff)
Add python stub file extension to cython rule
*.pyi also use python syntax so it can be translated to c/c++ files by cython
Diffstat (limited to 'xmake/rules/python')
-rw-r--r--xmake/rules/python/cython/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/python/cython/xmake.lua b/xmake/rules/python/cython/xmake.lua
index 87ad1b669..b29c55c39 100644
--- a/xmake/rules/python/cython/xmake.lua
+++ b/xmake/rules/python/cython/xmake.lua
@@ -20,7 +20,7 @@
rule("python.cython")
add_deps("python.module")
- set_extensions(".py", ".pyx")
+ set_extensions(".py", ".pyx", ".pyi")
on_load(function (target)
local language = target:extraconf("rules", "python.cython", "language")