forked from symengine/symengine.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_travis.sh
37 lines (27 loc) · 946 Bytes
/
install_travis.sh
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
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# symengine's bin/install_travis.sh will install miniconda
export conda_pkgs="python=${PYTHON_VERSION} pip 'cython>=0.29.24' pytest gmp mpfr"
if [[ "${WITH_NUMPY}" != "no" ]]; then
export conda_pkgs="${conda_pkgs} numpy";
fi
if [[ "${WITH_SCIPY}" == "yes" ]]; then
export conda_pkgs="${conda_pkgs} scipy";
fi
if [[ "${WITH_DOCS}" == "yes" ]]; then
export conda_pkgs="${conda_pkgs} sphinx recommonmark";
fi
if [[ "${WITH_FLINT_PY}" == "yes" ]]; then
export conda_pkgs="${conda_pkgs} python-flint"; # python-flint affects sympy, see e.g. sympy/sympy#26645
fi
if [[ "${WITH_SAGE}" == "yes" ]]; then
# This is split to avoid the 10 minute limit
conda install -q sagelib=8.1
conda clean --all
export conda_pkgs="${conda_pkgs} sage=8.1";
fi
conda install -q ${conda_pkgs}
if [[ "${WITH_SYMPY}" != "no" ]]; then
pip install sympy;
fi
conda clean --all
source activate $our_install_dir;