forked from hpc/mpifileutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpifu_venv.sh
executable file
·30 lines (23 loc) · 980 Bytes
/
mpifu_venv.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
#!/bin/bash
# This script assumes you have at least python-2.7.10 installed
# Pass in the top level directory of where you have the project downloaded
MPIFU_DIR=$1
echo $MPIFU_DIR
CONDA_BIN=${MPIFU_DIR}/miniconda2/bin
ACTIVATE_VENV=${MPIFU_DIR}/miniconda2/envs/mpifu_venv
CONDA_INSTALL=${MPIFU_DIR}/miniconda2
# get the installer for miniconda
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
chmod +x Miniconda2-latest-Linux-x86_64.sh
# run the install
./Miniconda2-latest-Linux-x86_64.sh -b -p ${CONDA_INSTALL}
# create and activate the mpifu virtual env
${CONDA_BIN}/conda create -n mpifu_venv
source activate $ACTIVATE_VENV
# now install pypandoc (which has pandoc as well)
# you can use either pypandoc or pandoc to create
# the man pages from the markdown format
${CONDA_BIN}/conda config --add channels conda-forge
${CONDA_BIN}/conda install pypandoc
# install nose2 via pip
${CONDA_BIN}/pip install --trusted-host pypi.python.org nose2