From 9c8f66817204670492bbce99456fc55aefe1431a Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 6 May 2022 14:48:13 -0700 Subject: [PATCH] build/pkgs/sagemath_objects/spkg-install: Handle errors --- build/pkgs/sagemath_objects/spkg-install | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build/pkgs/sagemath_objects/spkg-install b/build/pkgs/sagemath_objects/spkg-install index 35fc55090e5..da533b030a2 100755 --- a/build/pkgs/sagemath_objects/spkg-install +++ b/build/pkgs/sagemath_objects/spkg-install @@ -16,12 +16,10 @@ cd src # (Important because sagemath-objects uses MANIFEST.in for filtering.) # Do not install the wheel. DIST_DIR="$(mktemp -d)" -python3 -m build --outdir "$DIST_DIR"/dist . +python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel" wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel) if [ "$SAGE_CHECK" != no ]; then tox --installpkg $wheel fi - -exit 0