xmake.lua 1.4 KB

123456789101112131415161718192021222324252627
  1. package("python-launcher")
  2. set_kind("binary")
  3. set_homepage("https://www.python.org/")
  4. set_description("The python programming language.")
  5. if is_arch("x86", "i386") or os.arch() == "x86" then
  6. add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-launcher-$(version).win32.zip")
  7. add_versions("3.9.6", "73d712aaca09d7ada78bcf26dfc3346f655b4b1fed5b459133ce564b9c5f5663")
  8. add_versions("3.9.10", "36f445e1569f4b0647080c7603c9a5f635f131b7f2ee5bf29d6c02e38d235b34")
  9. add_versions("3.9.13", "428178d0270d030b83107ddae33c614355e05af646cca832b3e27cee869412cf")
  10. add_versions("3.10.6", "e5b53686c903e638166cff54e3e029992c80cd41ad892c9929bd6cee492d64f4")
  11. else
  12. add_urls("https://github.com/xmake-mirror/python-windows/releases/download/$(version)/python-launcher-$(version).win64.zip")
  13. add_versions("3.9.6", "fc2a54f47f07a193265cb844c0e1b165682c71a1655e92eb3c44f25bacc84b8a")
  14. add_versions("3.9.10", "70df88a455fe2c87c62c0817decb7f54f198ff31ade093ce4d8ecc8cfd452b3f")
  15. add_versions("3.9.13", "2f99ffa9c34a0df35bd836bd868ba9bbd4e9cf8001f4fb071e995258d80af386")
  16. add_versions("3.10.6", "68616e070889b3bb82176ff72aea5b760cda636bd6e30d10bad9399dc0a2d0a0")
  17. end
  18. on_install("@windows", "@msys", "@cygwin", function (package)
  19. os.cp("*", package:installdir("bin"))
  20. end)
  21. on_test(function (package)
  22. os.vrun("py -0p")
  23. end)