Browse Source

update python

ruki 4 years ago
parent
commit
ac9d3937f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/p/python/xmake.lua

+ 1 - 1
packages/p/python/xmake.lua

@@ -236,7 +236,7 @@ package("python")
         if package:kind() ~= "binary" then
         if package:kind() ~= "binary" then
             assert(package:has_cfuncs("PyModule_New", {includes = "Python.h"}))
             assert(package:has_cfuncs("PyModule_New", {includes = "Python.h"}))
         end
         end
-        if is_host("windows") and package:version():ge("3.8.0") then
+        if is_host("windows") and package:version():ge("3.8.0") and winos.version():gt("win8") then
             os.vrun("py -3 -c \"import sys\"")
             os.vrun("py -3 -c \"import sys\"")
         end
         end
     end)
     end)