From 10154eb6705f4aa10c33a3e0bf8f33da7c6052cd Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 13 May 2019 22:30:17 +0800 Subject: [PATCH] fix site-packages for meson --- packages/m/meson/xmake.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/m/meson/xmake.lua b/packages/m/meson/xmake.lua index 96ba4375f..1d8a6afa4 100644 --- a/packages/m/meson/xmake.lua +++ b/packages/m/meson/xmake.lua @@ -12,7 +12,12 @@ package("meson") on_install("@macosx", "@linux", "@windows", function (package) local version = package:dep("python"):version() - local envs = {PYTHONPATH = package:installdir("lib", "python" .. version:major() .. "." .. version:minor(), "site-packages")} + local envs = {} + if is_host("windows") then + envs.PYTHONPATH = package:installdir("Lib", "site-packages") + else + envs.PYTHONPATH = package:installdir("lib", "python" .. version:major() .. "." .. version:minor(), "site-packages") + end os.vrunv("python3", {"setup.py", "install", "--prefix=" .. package:installdir()}, {envs = envs}) package:addenv("PYTHONPATH", envs.PYTHONPATH) end)