set host argument fot python2

pull/18/head
ruki 6 years ago
parent f7f693d8ff
commit 3fc5fee49f
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 3
      packages/p/python2/xmake.lua

@ -19,7 +19,7 @@ package("python2")
end
if is_host("macosx", "linux") then
add_deps("openssl", {plat = os.host(), arch = os.arch()})
add_deps("openssl", {host = true})
end
on_load(function (package)
@ -61,7 +61,6 @@ package("python2")
http.download(resource.url, resourcefile)
assert(resource.sha256 == hash.sha256(resourcefile), "resource(%s): unmatched checksum!", name)
assert(archive.extract(resourcefile, resourcedir), "resource(%s): extract failed!", name)
print(resourcedir)
local setupfile = assert(find_file("setup.py", path.join(resourcedir, "*")), "resource(%s): setup.py not found!", name)
local oldir = os.cd(path.directory(setupfile))
os.vrunv(python, {"setup.py", "install", "--prefix=" .. package:installdir()}, {envs = envs})

Loading…
Cancel
Save