1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/bash
# Our conda env has the necessary dependencies, so propagate them
# for the build below
export PREFIX="$CONDA_DEFAULT_ENV"
# For now, we need an alpha version of JupyterLab. Can be removed later.
pip install --pre -U jupyterlab
echo "configuring eclib with PREFIX=$PREFIX"
# Configure eclib with autotools
export CONFIGURE_OPTS="--disable-mpfp"
export CPPFLAGS="-I$PREFIX/include $CPPFLAGS"
export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib $LDFLAGS"
echo "environment"
echo "==========="
env | sort
echo
chmod +x autogen.sh
./autogen.sh
chmod +x configure
./configure --prefix="$PREFIX" --with-ntl="$PREFIX" --with-pari="$PREFIX" --with-flint="$PREFIX" --with-boost="no" $CONFIGURE_OPTS
# Build and install so Binder users have a fully installed environment
make && make check && make install
|