apotocki/python 3.14.10 (r1, windows)
- Library
- python
- Variant
- windows, target windows
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes.git
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/python/3.14/windows/ - Recipe SHA-256
b4f75c4f161b0dfd74b9023b9ec62b67a7d686ee476ea1466a62c2fac992c091
Recipe files changed
Inputs
| source.sha256 | de414a57119abef52784d8993e341d53aed635fc2b05c2607d9f98a2c5b72032 |
|---|---|
| source.url | https://www.python.org/ftp/python/3.14.10/Python-3.14.10.tar.xz |
| resource windows_x86_64.sha256 | 90905e64a840557d8c1bc4f5b74db3d7ee85e3ffb217611cac1c7813acea4159 |
| resource windows_x86_64.url | https://www.python.org/ftp/python/3.14.10/python-3.14.10-embed-amd64.zip |
| resource windows_arm64.sha256 | bbe116bb1248820359cbf25127ac5c7794ea161869d83686cfbc9a45203ff836 |
| resource windows_arm64.url | https://www.python.org/ftp/python/3.14.10/python-3.14.10-embed-arm64.zip |
Platforms
windows
Recipe files
build.lua
-- The interpreter of the build machine: the embeddable package (python.exe beside its python314.zip and DLLs) copied
-- into bin/ and made an installation: its python314._pth would make it ignore PYTHONPATH, which builds use (ICU's
-- configure: PYTHONPATH=… python -m icutools…), and without that file it would take the paths of an installed Python of
-- its version from the registry, finding no Lib\os.py(c) beside it. So its standard library is unpacked into Lib/, by
-- the interpreter itself while its ._pth still holds, and the ._pth removed.
function build(slice, options, deps)
local r = slice.resources
local embeddable = r.windows_x86_64 or r.windows_arm64
if not embeddable then error("no embeddable Python for this build machine") end
local bin = slice.prefix .. "/bin"
otok.copy(embeddable, bin)
local zip = otok.glob("python3*.zip", bin)[1]
local pth = otok.glob("python3*._pth", bin)[1]
if not zip or not pth then error("the embeddable package has no python3*.zip or python3*._pth") end
otok.run({ bin .. "/python.exe", "-I", "-c", "import sys, zipfile; zipfile.ZipFile(sys.argv[1]).extractall(sys.argv[2])",
zip, bin .. "/Lib" })
otok.remove(zip)
otok.remove(pth)
return { programs = { python = bin .. "/python.exe" } }
end
recipe.toml
# The otok recipe of Python (https://github.com/apotocki/otok): the python program for the build scripts of other
# recipes, which name it as their toolchain (`python = { default-recipe = "apotocki/python" }`), on Windows: the
# embeddable package of python.org of the build machine (a resource per architecture, fetched on that machine only),
# laid out as an installation (Lib/, no ._pth). It has no pip packages: the standard library only. The source archive
# carries the license.
[recipe]
api = 1
library = "python"
name = "python"
version = "3.14.10"
revision = 1
license = "PSF-2.0"
license-files = ["LICENSE"]
homepage = "https://www.python.org"
description = "Python, the interpreter, prebuilt for the build machine: python.org's embeddable package on Windows."
keywords = ["python", "interpreter", "tool"]
[tool]
programs = ["python"]
[source]
url = "https://www.python.org/ftp/python/3.14.10/Python-3.14.10.tar.xz"
sha256 = "de414a57119abef52784d8993e341d53aed635fc2b05c2607d9f98a2c5b72032"
[[resource]]
name = "windows_x86_64"
url = "https://www.python.org/ftp/python/3.14.10/python-3.14.10-embed-amd64.zip"
sha256 = "90905e64a840557d8c1bc4f5b74db3d7ee85e3ffb217611cac1c7813acea4159"
when = { host = ["windows-x86_64"] }
[[resource]]
name = "windows_arm64"
url = "https://www.python.org/ftp/python/3.14.10/python-3.14.10-embed-arm64.zip"
sha256 = "bbe116bb1248820359cbf25127ac5c7794ea161869d83686cfbc9a45203ff836"
when = { host = ["windows-arm64"] }
[platforms]
supported = ["windows"]
build-on = ["windows/msvc", "windows/clang-cl"]