summaryrefslogtreecommitdiff
path: root/xmake/scripts/xrepo/envs/python3.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-06 22:42:17 +0800
committerruki <[email protected]>2022-12-06 22:42:17 +0800
commit1c32eaad0fd0cb6389806bae00d326d77c775f01 (patch)
tree47bffbdd143944a8fb403168d1a309682f99b583 /xmake/scripts/xrepo/envs/python3.lua
parent8af2f3ed32b1fefc8e60c6cf5fbc6203f0a535e5 (diff)
improve py envs
Diffstat (limited to 'xmake/scripts/xrepo/envs/python3.lua')
-rw-r--r--xmake/scripts/xrepo/envs/python3.lua6
1 files changed, 5 insertions, 1 deletions
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