summaryrefslogtreecommitdiff
path: root/xmake/rules/python
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/python')
-rw-r--r--xmake/rules/python/xmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/python/xmake.lua b/xmake/rules/python/xmake.lua
index d566fa849..20c30c6b5 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")
@@ -35,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")