-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_conda.sh
28 lines (24 loc) · 731 Bytes
/
build_conda.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
if [ -d "./conda-bld" ]
then
echo "Directory ./conda-bld exists. Clear it."
rm -rf ./conda-bld/*
else
echo "Directory ./conda-bld NOT exists. 'mkdir' for it!"
mkdir ./conda-bld
fi
if [ -x "$(command -v mamba)" ]
then
echo "'mamba' installed. So we will use The Fast Mamba."
mybuild="mambabuild"
else
echo "'mamba' NOT installed. We just use 'conda build'"
mybuild="build"
fi
# execute build recipe
conda ${mybuild} conda-recipe --output-folder ./conda-bld
# convert for all platforms; this can also be done through anaconda upload
# cd conda-bld
# conda convert -p all osx-64/cellcano*.tar.bz2
# cd ..
# after `anaconda login`
# anaconda upload ./conda-bld/osx-64/cellcano*-0.0.2*.tar.bz2 --all