diff --git a/readthedocs/doc_builder/environments.py b/readthedocs/doc_builder/environments.py index 8150eed2be0..23c23ee0e1e 100644 --- a/readthedocs/doc_builder/environments.py +++ b/readthedocs/doc_builder/environments.py @@ -945,9 +945,6 @@ def _get_binds(self): It uses Docker Volume if running on a docker-compose. Otherwise, it returns just a regular mountpoint path. - - Besides, it binds the ``GLOBAL_PIP_CACHE`` if it's set and we are under - ``DEBUG`` mode. """ if getattr(settings, 'RTD_DOCKER_COMPOSE', False): from pathlib import Path @@ -965,14 +962,6 @@ def _get_binds(self): }, } - if settings.GLOBAL_PIP_CACHE and settings.DEBUG: - binds.update({ - self.project.pip_cache_path: { - 'bind': self.project.pip_cache_path, - 'mode': 'rw', - }, - }) - return binds def get_container_host_config(self): diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index 67709e26165..525636cb3d3 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -663,8 +663,6 @@ def checkout_path(self, version=LATEST): @property def pip_cache_path(self): """Path to pip cache.""" - if settings.GLOBAL_PIP_CACHE and settings.DEBUG: - return settings.GLOBAL_PIP_CACHE return os.path.join(self.doc_path, '.cache', 'pip') # diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index 79d4d166dd8..d8af7992b8c 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -275,7 +275,6 @@ def USE_PROMOS(self): # noqa } } CACHE_MIDDLEWARE_SECONDS = 60 - GLOBAL_PIP_CACHE = False # I18n TIME_ZONE = 'UTC'