Skip to content

Commit da92a08

Browse files
committed
ENH: Allow passing in specific nipype branch
1 parent 650ff45 commit da92a08

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

generate.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
set -e
44

5+
NIPYPE_BRANCH=${1:-"master"}
6+
case $NIPYPE_BRANCH in
7+
master)
8+
NIPYPE_URL="https://github.com/nipy/nipype/tarball/master"
9+
;;
10+
*)
11+
NIPYPE_URL="git+https://github.com/nipy/nipype.git@${NIPYPE_BRANCH}"
12+
;;
13+
esac
14+
515
# Generate Dockerfile
616
generate_docker() {
717
docker run --rm kaczmarj/neurodocker:master generate docker \
@@ -17,7 +27,7 @@ generate_docker() {
1727
--miniconda \
1828
conda_install="python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
1929
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
20-
pip_install="https://github.com/nipy/nipype/tarball/master
30+
pip_install="$NIPYPE_URL
2131
pybids==0.13.1
2232
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
2333
create_env="neuro" \
@@ -56,7 +66,7 @@ generate_singularity() {
5666
--miniconda \
5767
conda_install="python=3.7 pytest jupyter jupyterlab jupyter_contrib_nbextensions
5868
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
59-
pip_install="https://github.com/nipy/nipype/tarball/master
69+
pip_install="$NIPYPE_URL
6070
pybids==0.13.1
6171
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
6272
create_env="neuro" \

0 commit comments

Comments
 (0)