diff --git a/readthedocs/doc_builder/python_environments.py b/readthedocs/doc_builder/python_environments.py index 88e8462118e..faddb31b70f 100644 --- a/readthedocs/doc_builder/python_environments.py +++ b/readthedocs/doc_builder/python_environments.py @@ -471,7 +471,13 @@ def install_core_requirements(self): Feature.DONT_INSTALL_LATEST_PIP, # 20.3 uses the new resolver by default. positive='pip<20.3', - negative='pip', + + # We are pinning pip to 21.3.1 because builds are failing when + # using a newer version. This is a temporal workaround to avoid + # builds failing at this step, but we should come back to this and + # unpin pip for this case. + # https://github.com/readthedocs/readthedocs.org/issues/8864#issuecomment-1025499598 + negative='pip==21.3.1', ) cmd = pip_install_cmd + [pip_version, 'setuptools<58.3.0'] self.build_env.run(