Fix RustPython compilation

The head of the repository compiles whereas the branch doesn't anymore.
DYNAMIC_INIT is needed because of a linking error when the dependencies
are dynamically compiled.
This commit is contained in:
Josh Megnauth 2025-05-21 21:05:08 -04:00
parent ccd981df99
commit 968fb22b8c
No known key found for this signature in database
GPG Key ID: 70813183462EFAD3

View File

@ -1,6 +1,5 @@
[source]
git = "https://github.com/RustPython/RustPython"
branch = "redox-release"
[build]
dependencies = [
@ -9,6 +8,8 @@ dependencies = [
]
template = "custom"
script = """
DYNAMIC_INIT
(cd "${COOKBOOK_SOURCE}" && bash scripts/redox/uncomment-cargo.sh && cargo update)
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"