From 19cd54988bbf096582ecc93b8d34ff1ba59690c5 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 4 Sep 2022 22:20:18 +0800 Subject: add python library env --- xmake/rules/python/xmake.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/rules/python/xmake.lua') diff --git a/xmake/rules/python/xmake.lua b/xmake/rules/python/xmake.lua index d566fa849..da54ead22 100644 --- a/xmake/rules/python/xmake.lua +++ b/xmake/rules/python/xmake.lua @@ -23,6 +23,7 @@ rule("python.library") on_config(function (target) target:set("kind", "shared") target:set("prefixname", "") + target:add("runenvs", "PYTHONPATH", target:targetdir()) local soabi = target:extraconf("rules", "python.library", "soabi") if soabi then import("lib.detect.find_tool") -- cgit v1.3.1 From 80d10b758c80eb49fc46f1aab57c013baf278ed5 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Mon, 5 Sep 2022 15:03:40 +0800 Subject: improve python.library for mingw --- xmake/rules/python/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/python/xmake.lua') diff --git a/xmake/rules/python/xmake.lua b/xmake/rules/python/xmake.lua index da54ead22..20c30c6b5 100644 --- a/xmake/rules/python/xmake.lua +++ b/xmake/rules/python/xmake.lua @@ -36,7 +36,7 @@ rule("python.library") end end else - if target:is_plat("windows") then + if target:is_plat("windows", "mingw") then target:set("extension", ".pyd") else target:set("extension", ".so") -- cgit v1.3.1