From 761a024e72a2ff445758f677641a781df193838b Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Fri, 22 Aug 2025 20:34:50 +0800 Subject: Add python stub file extension to cython rule *.pyi also use python syntax so it can be translated to c/c++ files by cython --- xmake/rules/python/cython/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/python') 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") -- cgit v1.3.1