-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconda_env.sh
More file actions
executable file
·33 lines (30 loc) · 947 Bytes
/
conda_env.sh
File metadata and controls
executable file
·33 lines (30 loc) · 947 Bytes
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
#!/bin/bash
set -x
set -e
# setup env
condir="$(pwd)/anaconda"
export PATH="${condir}/bin:${condir}/usr/local/bin:${PATH}"
export LD_LIBRARY_PATH="${condir}/lib:$LD_LIBRARY_PATH"
export DYLD_FALLBACK_LIBRARY_PATH="${condir}/lib:$DYLD_FALLBACK_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="${condir}/lib:$DYLD_LIBRARY_PATH"
export C_INCLUDE_PATH="${condir}/include:$C_INCLUDE_PATH"
export CPLUS_INCLUDE_PATH="${condir}/include:$CPLUS_INCLUDE_PATH"
export LIBRARY_PATH="${condir}/lib:$LIBRARY_PATH"
export BLD="${condir}/conda-bld"
export HDF5_ROOT="${condir}"
export CONDIR="${condir}"
touch results.tar
conda_build () {
echo ""
echo ""
echo "#######################################"
echo "# Building $1 "
echo "#######################################"
echo ""
echo ""
conda build --no-test --no-binstar-upload $1
P=$(ls ${BLD}/*/${1}*.tar.bz2)
PDIR=$(dirname $P)
PFILE=$(basename $P)
tar -uf results.tar -C $PDIR $PFILE
}