File: postBuild

package info (click to toggle)
eclib 20190909-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,196 kB
  • sloc: cpp: 47,090; makefile: 251; sh: 122
file content (23 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Our conda env has the necessary dependencies, so propagate them
# for the build below
export PREFIX=$CONDA_DIR

# For now, we need an alpha version of JupyterLab. Can be removed later.
pip install --pre -U jupyterlab


# 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"

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