Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 61f5908

Browse files
committed
Further fixes to docbuilding of cvxopt
1 parent 4bfdc4a commit 61f5908

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

build/pkgs/cvxopt/dependencies

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
$(PYTHON) numpy $(BLAS) cephes gsl glpk sphinx| pkgconfig pip matplotlib typing
1+
$(PYTHON) numpy $(BLAS) cephes gsl glpk | sphinx pkgconfig pip matplotlib
22

33
matplotlib is needed to test cvxopt (i.e., if SAGE_CHECK=yes). See #12742.
4-
sphinx and typing are used to build docs (see #14645).
4+
sphinx is used to build docs (see #14645).
55
----------
66
All lines of this file are ignored except the first.
77
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.

build/pkgs/cvxopt/spkg-install

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,12 @@ fi
2828

2929
sdh_pip_install .
3030

31-
if [ $? -ne 0 ]; then
32-
echo "Error building/installing cvxopt"
33-
exit 1
34-
fi
35-
3631
# install docs
37-
if [ "x$SAGE_SPKG_INSTALL_DOCS" = xyes ] ; then
38-
cd doc
39-
${MAKE} -B html
40-
if [ $? -ne 0 ]; then
41-
echo "Error building the documentation"
42-
exit 1
43-
fi
44-
# checking to see if there is previously installed documentation.
45-
if [ -d $SAGE_LOCAL/share/doc/cvxopt/html ] ; then
46-
rm -rf $SAGE_LOCAL/share/doc/cvxopt/html
47-
fi
48-
mkdir -p $SAGE_LOCAL/share/doc/cvxopt/html
49-
cp -r build/html/* $SAGE_LOCAL/share/doc/cvxopt/html/
50-
fi
32+
if [ "$SAGE_SPKG_INSTALL_DOCS" = yes ]; then
33+
cd doc
34+
$MAKE -B html || sdh_die "Error building the documentation"
5135

36+
docdir="$SAGE_LOCAL/share/doc/cvxopt"
37+
rm -rf "$docdir"
38+
mv build/html "$docdir"
39+
fi

0 commit comments

Comments
 (0)