Skip to content

Commit

Permalink
Use Miniconda2 to make it backward compatible
Browse files Browse the repository at this point in the history
Here is the difference,

> There are two variants of the installer: Miniconda is Python 2 based and Miniconda3 is Python 3 based. Note that the choice of which Miniconda is installed only affects the root environment. Regardless of which version of Miniconda you install, you can still install both Python 2.x and Python 3.x environments.

This one, affects us since if the user was not specifying the Python version when using `conda` we will defaulting to `python3`.

> The other difference is that the Python 3 version of Miniconda will default to Python 3 when creating new environments and building packages.

https://conda.io/miniconda.html

Considering that we are defaulting `python3` for new projects, it would be good to find a way to use `py2` only in old conda projects, though.
  • Loading branch information
humitos committed Jan 14, 2019
1 parent f2896f1 commit 530bc53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ USER docs
WORKDIR /home/docs

# Install Conda
RUN curl -O https://repo.continuum.io/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh
RUN bash Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh -b -p /home/docs/.conda/
RUN curl -O https://repo.continuum.io/miniconda/Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh
RUN bash Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh -b -p /home/docs/.conda/
ENV PATH $PATH:/home/docs/.conda/bin
RUN rm -f Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh
RUN rm -f Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh

# Install pyenv
RUN wget https://github.com/pyenv/pyenv/archive/master.zip
Expand Down

0 comments on commit 530bc53

Please sign in to comment.