File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
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
+
5
15
# Generate Dockerfile
6
16
generate_docker () {
7
17
docker run --rm kaczmarj/neurodocker:master generate docker \
@@ -17,7 +27,7 @@ generate_docker() {
17
27
--miniconda \
18
28
conda_install=" python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
19
29
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
21
31
pybids==0.13.1
22
32
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
23
33
create_env=" neuro" \
@@ -56,7 +66,7 @@ generate_singularity() {
56
66
--miniconda \
57
67
conda_install=" python=3.7 pytest jupyter jupyterlab jupyter_contrib_nbextensions
58
68
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
60
70
pybids==0.13.1
61
71
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
62
72
create_env=" neuro" \
You can’t perform that action at this time.
0 commit comments