-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
/
Copy pathsetup_conda_environment.sh
executable file
·52 lines (42 loc) · 1.24 KB
/
setup_conda_environment.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
set -v -e
CONDA_INSTALL="conda install -q -y"
PIP_INSTALL="pip install -q"
# Deactivate any environment
source deactivate
# Display root environment (for debugging)
conda list
# Clean up any left-over from a previous build
# (note workaround for https://github.com/conda/conda/issues/2679:
# `conda env remove` issue)
conda remove --all -q -y -n pandas-dev
echo
echo "[create env]"
time conda env create -q --file="${ENV_FILE}" || exit 1
set +v
source activate pandas-dev
set -v
# remove any installed pandas package
# w/o removing anything else
echo
echo "[removing installed pandas]"
conda remove pandas -y --force || true
pip uninstall -y pandas || true
echo
echo "[no installed pandas]"
conda list pandas
if [ -n "$LOCALE_OVERRIDE" ]; then
sudo locale-gen "$LOCALE_OVERRIDE"
fi
# # Install the compiler toolchain
# if [[ $(uname) == Linux ]]; then
# if [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]] ; then
# $CONDA_INSTALL gcc_linux-32 gxx_linux-32
# else
# $CONDA_INSTALL gcc_linux-64 gxx_linux-64
# fi
# elif [[ $(uname) == Darwin ]]; then
# $CONDA_INSTALL clang_osx-64 clangxx_osx-64
# # Install llvm-openmp and intel-openmp on OSX too
# $CONDA_INSTALL llvm-openmp intel-openmp
# fi