summaryrefslogtreecommitdiff
path: root/xmake/rules/python/module
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/python/module')
-rw-r--r--xmake/rules/python/module/xmake.lua2
1 files changed, 1 insertions, 1 deletions
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}