Some checks failed
CI / Build Jupyter Sage docker images (push) Failing after 7s
43 lines
787 B
Bash
43 lines
787 B
Bash
#!/usr/bin/env sh
|
|
set -e
|
|
|
|
# pkgs=(
|
|
# standard
|
|
# bliss
|
|
# coxeter3
|
|
# mcqd
|
|
# meataxe
|
|
# sirocco
|
|
# tdlib
|
|
# )
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
# use correct latte-count binary name
|
|
# patch -p1 -i ../latte-count.patch
|
|
# update to tdlib 0.9 (Fedora)
|
|
# patch -p1 -i ../sagemath-tdlib-0.9.patch
|
|
# Adapt to Singular changes
|
|
# patch -p1 -i ../singular-4.4.patch
|
|
# Fix build with GCC 14
|
|
# git cherry-pick -n e87fd8466d10c21d8f16bd08187c11b4dc116020
|
|
# git cherry-pick -n cec595ef953bb9e180aadee8583ad5a2fa5577d3
|
|
./bootstrap
|
|
}
|
|
|
|
build() {
|
|
#export SAGE_NUM_THREADS=$(($(nproc)/2))
|
|
#export PYTHONPATH="$PWD"/sage/pkgs/sage-setup
|
|
python3 -m build --wheel --no-isolation -C setup-args=-Dbuild-docs=false
|
|
}
|
|
|
|
package() {
|
|
python -m installer dist/*.whl
|
|
}
|
|
|
|
# prepare
|
|
|
|
build
|
|
|
|
package
|