Browse Source

set host argument fot python2

ruki 6 years ago
parent
commit
3fc5fee49f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/p/python2/xmake.lua

+ 1 - 2
packages/p/python2/xmake.lua

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