mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 05:44:17 +08:00
37 lines
697 B
TOML
37 lines
697 B
TOML
#TODO works without pip, probably it requires openssl
|
|
[source]
|
|
tar = "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz"
|
|
patches = [
|
|
"redox.patch"
|
|
]
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
# "openssl1", requires 1.1.1
|
|
# "ncurses",
|
|
"ncursesw",
|
|
# "readline", unable to link
|
|
"zlib",
|
|
"xz"
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
ARCH="${TARGET%%-*}"
|
|
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
--prefix=/usr
|
|
--disable-ipv6
|
|
--host=${GNU_TARGET}
|
|
--build=$ARCH
|
|
--with-build-python
|
|
# --with-openssl="${COOKBOOK_SYSROOT}/usr"
|
|
--with-ensurepip=install
|
|
ac_cv_file__dev_ptmx=no
|
|
ac_cv_file__dev_ptc=no
|
|
)
|
|
|
|
cookbook_configure
|
|
"""
|