readthedocs/readthedocs-docker-images

Consider removing pre-installed Python packages

Closed this issue · 2 comments

We are installing some scientific Python packages,

pip install --no-cache-dir --only-binary numpy,scipy numpy scipy
pip install --no-cache-dir pandas matplotlib

This was useful some time ago to reduce compiling time on builds. Although, this has changed and all of them have wheel packages and they are not needed to be compiled anymore.

By installing them in a clean venv locally, it took just 10s.

I propose to remove them completely from the docker image.

Besides, I'd say that people depending on these packages they will install the exact version they want and not an old one that we can provide from our docker image.

Other considerations,

Ref #1

3.9.0rc1 won't come with pre-installed requirements, see #137

New Docker (#166) images won't come with these pre-installed packages.