redox/recipes/wip/dev/lang/python312/recipe.toml
2025-09-20 13:34:16 +07:00

41 lines
666 B
TOML

#TODO works without pip
[source]
tar = "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz"
patches = [
"redox.patch"
]
[build]
template = "custom"
dependencies = [
"bzip2",
"libffi",
"libuuid",
"openssl3",
"ncurses",
"ncursesw",
"readline",
"sqlite3",
"zlib",
"xz"
]
script = """
DYNAMIC_INIT
export PYTHONDONTWRITEBYTECODE=1
ARCH="${TARGET%%-*}"
COOKBOOK_CONFIGURE_FLAGS=(
--prefix=/usr
--enable-shared
--disable-ipv6
--host=${GNU_TARGET}
--build=$ARCH
--with-build-python
--with-ensurepip=install
ac_cv_file__dev_ptmx=no
ac_cv_file__dev_ptc=no
)
cookbook_configure
"""