From 4c9ebb269e735984f540fce1c30bd9eaef4f4b5a Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 17 Jul 2024 20:11:45 +0200 Subject: [PATCH] Build: do not install our extension when building with Conda I missed this in https://github.com/readthedocs/readthedocs.org/pull/11441 --- readthedocs/doc_builder/python_environments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readthedocs/doc_builder/python_environments.py b/readthedocs/doc_builder/python_environments.py index f186fc44fcb..c5a6bb56d28 100644 --- a/readthedocs/doc_builder/python_environments.py +++ b/readthedocs/doc_builder/python_environments.py @@ -356,7 +356,9 @@ def _get_core_requirements(self): if self.config.doctype == "mkdocs": pip_requirements.append("mkdocs") else: - pip_requirements.append("readthedocs-sphinx-ext") + if not self.project.has_feature(Feature.DISABLE_SPHINX_MANIPULATION): + pip_requirements.append("readthedocs-sphinx-ext") + conda_requirements.extend(["sphinx"]) return pip_requirements, conda_requirements