readthedocs/readthedocs-docker-images

Default to py3 for new conda projects

Closed this issue · 2 comments

Considering that we are defaulting to python3 for new projects (readthedocs/readthedocs.org#3581) we need to do the same for projects that uses conda instead of pip.

This can be achieved by using Miniconda3 instead of Miniconda2. The problem of changing this is that if the user was not specifying the Python version, python2 was installed and now python3 will be installed, which may break the build.

We need to research a little more about this and make some tests.

Discussion: #84 (comment)

The problem of changing this is that if the user was not specifying the Python version, python2 was installed and now python3 will be installed, which may break the build.

I think we should start forcing this. We are close to the end of the Python2 support and people using conda environment usually specifies the version of Python they want to install in the environment.yml file.

New Docker images (#166) will require the user to explicity define the conda version they want to install. If the select miniconda2-* it will use Python2 as the default. Otherwise, if they specify miniconda3-*, it will use Python3.

We don't need to take any other action here.