fix site-packages for meson

pull/18/head
ruki 6 years ago
parent a2606f447b
commit 10154eb670
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 7
      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)

Loading…
Cancel
Save