mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 11:24:18 +08:00
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.
26 lines
592 B
TOML
26 lines
592 B
TOML
[source]
|
|
git = "https://github.com/RustPython/RustPython"
|
|
|
|
[build]
|
|
dependencies = [
|
|
"openssl1",
|
|
"zlib",
|
|
]
|
|
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}"
|
|
export ZLIB_STATIC=1
|
|
cookbook_cargo --features ssl
|
|
mkdir -p "${COOKBOOK_STAGE}/lib"
|
|
rsync -aE \
|
|
--exclude 'test/' \
|
|
--exclude '__pycache__/' \
|
|
--exclude '*.pyc' \
|
|
--exclude '/README.md' \
|
|
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/lib/rustpython"
|
|
"""
|