summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/scripts/xrepo/envs/devel.lua6
-rw-r--r--xmake/scripts/xrepo/envs/python3.lua6
2 files changed, 10 insertions, 2 deletions
diff --git a/xmake/scripts/xrepo/envs/devel.lua b/xmake/scripts/xrepo/envs/devel.lua
index 6fe3daedf..407287058 100644
--- a/xmake/scripts/xrepo/envs/devel.lua
+++ b/xmake/scripts/xrepo/envs/devel.lua
@@ -1,5 +1,9 @@
add_requires("cmake")
-add_requires("python")
+if is_host("windows") and winos.version():le("win7") then
+ add_requires("python 3.7.x")
+else
+ add_requires("python 3.x")
+end
if is_host("linux", "bsd", "macosx") then
add_requires("pkg-config", "autoconf", "automake", "libtool")
elseif is_host("windows") then
diff --git a/xmake/scripts/xrepo/envs/python3.lua b/xmake/scripts/xrepo/envs/python3.lua
index 63cc2e643..28e7281b0 100644
--- a/xmake/scripts/xrepo/envs/python3.lua
+++ b/xmake/scripts/xrepo/envs/python3.lua
@@ -1 +1,5 @@
-add_requires("python 3.x")
+if is_host("windows") and winos.version():le("win7") then
+ add_requires("python 3.7.x")
+else
+ add_requires("python 3.x")
+end