Dockerfile: Install `ipython` using commit ( a58ab37122 ) on `master` with the test fix. This renders installing the patch directly unnecessary. This workaround should be removed on the next release of `ipython` that includes the aforementioned commit.

John Kirkham 11 years ago
parent aaa5dbefd5
commit 9fe7719560

@ -62,7 +62,10 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
pip3 --no-cache-dir install requests[security]
# Install some dependencies.
RUN pip2 --no-cache-dir install ipykernel && \
RUN pip2 --no-cache-dir install git+git://github.com/ipython/ipython.git@a58ab37122285adf8f79bd76ded718a777ae3a7c && \
pip3 --no-cache-dir install git+git://github.com/ipython/ipython.git@a58ab37122285adf8f79bd76ded718a777ae3a7c && \
\
pip2 --no-cache-dir install ipykernel && \
pip3 --no-cache-dir install ipykernel && \
\
python2 -m ipykernel.kernelspec && \
@ -83,10 +86,6 @@ RUN BUILD_DEPS="nodejs-legacy npm" && \
apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS
# Patch iPython to fix the unicode issue.
RUN patch /usr/local/lib/python2.7/dist-packages/IPython/utils/tests/test_path.py /usr/src/jupyter-notebook/ipython-patch.patch
RUN patch /usr/local/lib/python3.4/dist-packages/IPython/utils/tests/test_path.py /usr/src/jupyter-notebook/ipython-patch.patch
# Run tests.
RUN pip2 install --no-cache-dir mock nose requests testpath && \
pip3 install --no-cache-dir nose requests testpath && \

Loading…
Cancel
Save