From 43088a77832349076bb796159d5a885065773d7f Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Thu, 15 May 2025 03:10:57 +0800 Subject: Change python.module soabi's default value to true --- xmake/rules/python/module/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/python/module') diff --git a/xmake/rules/python/module/xmake.lua b/xmake/rules/python/module/xmake.lua index 6f86d929b..46d41be0b 100644 --- a/xmake/rules/python/module/xmake.lua +++ b/xmake/rules/python/module/xmake.lua @@ -25,7 +25,7 @@ rule("python.module") target:set("prefixname", "") target:add("runenvs", "PYTHONPATH", target:targetdir()) local soabi = target:extraconf("rules", "python.module", "soabi") - if soabi then + if soabi == nil or soabi then import("lib.detect.find_tool") local python = assert(find_tool("python3"), "python not found!") local result = try { function() return os.iorunv(python.program, {"-c", "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))"}) end} -- cgit v1.3.1