Commit ab670c0c authored by Spencer Bliven's avatar Spencer Bliven

Move crYOLO paths to config file

parent 90b528ba
#!/usr/bin/env modbuild
pbuild::add_to_group 'EM'
pbuild::prep() {
echo "prepping"
mkdir -p "$SRC_DIR"
curl -fsSLo "$SRC_DIR/miniconda.sh" 'https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh'
curl -fsSLo "$SRC_DIR/cryoloBM.tgz" 'ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_BM_V1_1_1/cryoloBM-1.1.1.tar.gz'
curl -fsSLo "$SRC_DIR/cryolo.tgz" 'ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_V1_2_3/cryolo-1.2.3.tar.gz'
:
source "${BUILDBLOCK_DIR}/files/config-$V.sh"
echo "prepping"
mkdir -p "$SRC_DIR"
curl -fsSLo "$SRC_DIR/miniconda.sh" "https://repo.anaconda.com/miniconda/${MINICONDA_VERSION:-Miniconda2-latest-Linux-x86_64.sh}"
curl -fsSLo "$SRC_DIR/cryoloBM.tgz" "${CRYOLOBM_URL:-ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_BM_V1_1_1/cryoloBM-1.1.1.tar.gz}"
curl -fsSLo "$SRC_DIR/cryolo.tgz" "${CRYOLO_URL:-ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_V${V_MAJOR}_${V_MINOR}_${V_PATCH}/cryolo-${V}.tar.gz}"
}
pbuild::configure() {
:
:
}
pbuild::compile() {
:
:
}
pbuild::install() {
mkdir -p $PREFIX
# Install conda
bash "$SRC_DIR/miniconda.sh" -b -p $PREFIX/conda
# Create environment
$PREFIX/conda/bin/conda create -y --name crYOLO anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy
# Activate
source $PREFIX/conda/bin/activate crYOLO
# Install
pip install $SRC_DIR/cryolo.tgz
pip install $SRC_DIR/cryoloBM.tgz
# Deactivate
source deactivate
mkdir -p $PREFIX
# Install conda
bash "$SRC_DIR/miniconda.sh" -b -p $PREFIX/conda
# Create environment
$PREFIX/conda/bin/conda create -y --name crYOLO anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy
# Activate
source $PREFIX/conda/bin/activate crYOLO
# Install
pip install $SRC_DIR/cryolo.tgz
pip install $SRC_DIR/cryoloBM.tgz
# Deactivate
source deactivate
}
# crYOLO configuration variables
# Miniconda installer filename. Defaults to 'latest'
MINICONDA_VERSION='Miniconda2-4.5.12-Linux-x86_64.sh'
# cryoloBM download url
CRYOLOBM_URL='ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_BM_V1_1_1/cryoloBM-1.1.1.tar.gz'
# cryolo download url. Default:
#CRYOLO_URL='ftp://ftp.gwdg.de/pub/misc/sphire/crYOLO_V1_2_3/cryolo-1.2.3.tar.gz'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment