summaryrefslogtreecommitdiff
path: root/xmake/rules/python
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-04 22:20:18 +0800
committerruki <[email protected]>2022-09-04 22:20:18 +0800
commit19cd54988bbf096582ecc93b8d34ff1ba59690c5 (patch)
treece9fa523ed009afcb65f1c044348a19122560ce2 /xmake/rules/python
parent690073e61bcf916e516e3406a31d64b9e1963441 (diff)
add python library env
Diffstat (limited to 'xmake/rules/python')
-rw-r--r--xmake/rules/python/xmake.lua1
1 files changed, 1 insertions, 0 deletions
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")