File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ RUN apt-get install -y \
99 g++ \
1010 build-essential \
1111 libncurses-dev \
12- python2.7 \
1312 libpython-dev \
1413 cython \
1514 libx11-dev \
@@ -20,30 +19,27 @@ RUN apt-get install -y \
2019 libtool \
2120 libxext-dev \
2221 libncurses-dev \
23- python2.7-dev \
2422 xfonts-100dpi \
2523 libopenmpi-dev \
26- python2.7-scipy \
2724 make \
2825 zlib1g-dev \
2926 unzip \
3027 vim \
3128 libpng-dev
3229
33- # Install latest NEURON
30+ # Switch to non sudo, create a Python 3 virtual environment
31+ USER $NB_USER
32+ RUN conda create --name snakes python=3.7
33+
34+ # Install latest iv and NEURON
3435RUN git clone --branch 7.6.2 https://github.com/neuronsimulator/nrn
3536WORKDIR nrn
3637RUN ./build.sh
37- RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
38+ # Activate conda to configure nrn with the right python version
39+ RUN /bin/bash -c "source activate snakes && ./configure --without-x --with-nrnpython=python3 --without-paranrn --prefix='/home/jovyan/work/nrn/' --without-iv"
3840RUN make --silent -j4
3941RUN make --silent install -j4
4042
41- # Switch to non sudo, create a Python 2 virtual environment
42- USER $NB_USER
43- # Commenting out the conda update things broke!
44- # RUN conda update conda
45- RUN conda create --name snakes python=2
46-
4743# Install NEURON python
4844WORKDIR src/nrnpython
4945ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ RUN apt-get install -y \
3333
3434# Switch to non sudo, create a Python 3 virtual environment
3535USER $NB_USER
36- # Commenting out the conda update things broke!
37- # RUN conda update conda
38- # python 3 implies python 3.7 at this moment in time. Probably we want to specify exactly the version
3936RUN conda create --name snakes python=3.7
4037
4138# Install latest iv and NEURON
You can’t perform that action at this time.
0 commit comments