diff options
| author | ruki <[email protected]> | 2022-12-06 22:42:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-06 22:42:17 +0800 |
| commit | 1c32eaad0fd0cb6389806bae00d326d77c775f01 (patch) | |
| tree | 47bffbdd143944a8fb403168d1a309682f99b583 | |
| parent | 8af2f3ed32b1fefc8e60c6cf5fbc6203f0a535e5 (diff) | |
improve py envs
| -rw-r--r-- | xmake/scripts/xrepo/envs/devel.lua | 6 | ||||
| -rw-r--r-- | xmake/scripts/xrepo/envs/python3.lua | 6 |
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 |
