diff options
| author | Wu, Zhenyu <[email protected]> | 2025-08-22 20:34:50 +0800 |
|---|---|---|
| committer | Wu, Zhenyu <[email protected]> | 2025-08-22 20:37:17 +0800 |
| commit | 761a024e72a2ff445758f677641a781df193838b (patch) | |
| tree | 99ee1246543045587c1a7eeb36be35f101b118a1 /xmake/rules/python/cython/xmake.lua | |
| parent | 6c32c626c5f251728c26a5642e11c8c1943bd6b9 (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/cython/xmake.lua')
| -rw-r--r-- | xmake/rules/python/cython/xmake.lua | 2 |
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") |
