update python (#2049)

pull/2051/head
Hoildkv 2 years ago committed by GitHub
parent b69b9581ba
commit 7cd9e3282f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/p/python-launcher/xmake.lua
  2. 10
      packages/p/python/xmake.lua

@ -10,12 +10,14 @@ package("python-launcher")
add_versions("3.9.10", "36f445e1569f4b0647080c7603c9a5f635f131b7f2ee5bf29d6c02e38d235b34")
add_versions("3.9.13", "428178d0270d030b83107ddae33c614355e05af646cca832b3e27cee869412cf")
add_versions("3.10.6", "e5b53686c903e638166cff54e3e029992c80cd41ad892c9929bd6cee492d64f4")
add_versions("3.11.3", "9d80b7f39286c297a7871e63867c99cb3d5dea98863d20c51802f2900a1a909d")
else
add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-launcher-$(version).win64.zip")
add_versions("3.9.6", "fc2a54f47f07a193265cb844c0e1b165682c71a1655e92eb3c44f25bacc84b8a")
add_versions("3.9.10", "70df88a455fe2c87c62c0817decb7f54f198ff31ade093ce4d8ecc8cfd452b3f")
add_versions("3.9.13", "2f99ffa9c34a0df35bd836bd868ba9bbd4e9cf8001f4fb071e995258d80af386")
add_versions("3.10.6", "68616e070889b3bb82176ff72aea5b760cda636bd6e30d10bad9399dc0a2d0a0")
add_versions("3.11.3", "afb50e1925f392ddc8917ca0552f108919add6c28bfe13c3a1b610b2ab005ef4")
end
on_install("@windows", "@msys", "@cygwin", function (package)

@ -14,6 +14,8 @@ package("python")
add_versions("3.9.10", "e2c8e6b792748289ac27ef8462478022c96e24c99c4c3eb97d3afe510d9db646")
add_versions("3.9.13", "c60ec0da0adf3a31623073d4fa085da62747085a9f23f4348fe43dfe94ea447b")
add_versions("3.10.6", "c1a07f7685b5499f58cfad2bb32b394b853ba12b8062e0f7530f2352b0942096")
add_versions("3.10.11", "7fac6ed9a58623f31610024d2c4d6abb33fac0cf741ec1a5285d056b5933012e")
add_versions("3.11.3", "992648876ecca6cfbe122dc2d9c358c9029d9fdb83ee6edd6e54926bf0360da6")
else
add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-$(version).win64.zip")
add_versions("2.7.18", "6680835ed5b818e2c041c7033bea47ace17f6f3b73b0d6efb6ded8598a266754")
@ -24,7 +26,8 @@ package("python")
add_versions("3.9.10", "4cee67e2a529fe363e34f0da57f8e5c3fc036913dc838b17389b2319ead0927e")
add_versions("3.9.13", "6774fdd872fc55b028becc81b7d79bdcb96c5e0eb1483cfcd38224b921c94d7d")
add_versions("3.10.6", "8cbc234939a679687da44c3bbc6d6ce375ea4b84c4fa8dbc1bf5befc43254b58")
add_versions("3.11.0", "c8faf060580012764f7708d26772f8543b1293dbd71a8addc28425be19a5bfd0")
add_versions("3.10.11", "96663f508643c1efec639733118d4a8382c5c895b82ad1362caead17b643260e")
add_versions("3.11.3", "708c4e666989b3b00057eaea553a42b23f692c4496337a91d17aced931280dc4")
end
else
add_urls("https://www.python.org/ftp/python/$(version)/Python-$(version).tgz")
@ -36,6 +39,8 @@ package("python")
add_versions("3.9.10", "1aa9c0702edbae8f6a2c95f70a49da8420aaa76b7889d3419c186bfc8c0e571e")
add_versions("3.9.13", "829b0d26072a44689a6b0810f5b4a3933ee2a0b8a4bfc99d7c5893ffd4f97c44")
add_versions("3.10.6", "848cb06a5caa85da5c45bd7a9221bb821e33fc2bdcba088c127c58fad44e6343")
add_versions("3.10.11", "f3db31b668efa983508bd67b5712898aa4247899a346f2eb745734699ccd3859")
add_versions("3.11.3", "1a79f3df32265d9e6625f1a0b31c28eb1594df911403d11f3320ee1da1b3e048")
end
add_configs("headeronly", {description = "Use header only version.", default = false, type = "boolean"})
@ -45,7 +50,7 @@ package("python")
end
if is_host("linux", "bsd") then
add_deps("libffi", "zlib", {host = true})
add_deps("libffi", "zlib", {host = true, private = true})
add_syslinks("util", "pthread", "dl")
end
@ -238,6 +243,7 @@ package("python")
-- unset these so that installing pip and setuptools puts them where we want
-- and not into some other Python the user has installed.
import("package.tools.autoconf").configure(package, configs, {envs = {PYTHONHOME = "", PYTHONPATH = ""}})
os.vrunv("make", {"-j4", "PYTHONAPPSDIR=" .. package:installdir()})
os.vrunv("make", {"install", "-j4", "PYTHONAPPSDIR=" .. package:installdir()})
if package:version():ge("3.0") then
os.cp(path.join(package:installdir("bin"), "python3"), path.join(package:installdir("bin"), "python"))

Loading…
Cancel
Save