Skip to content

Commit 81558b7

Browse files
committed
Remove FORCE_SPHINX_FROM_VENV
1 parent f9367d3 commit 81558b7

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

readthedocs/doc_builder/backends/sphinx.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,10 @@ def build(self):
282282
return cmd_ret.successful
283283

284284
def get_sphinx_cmd(self):
285-
if self.project.has_feature(Feature.FORCE_SPHINX_FROM_VENV):
286-
return (
287-
self.python_env.venv_bin(filename='python'),
288-
'-m',
289-
'sphinx',
290-
)
291285
return (
292-
'python',
293-
self.python_env.venv_bin(filename='sphinx-build'),
286+
self.python_env.venv_bin(filename='python'),
287+
'-m',
288+
'sphinx',
294289
)
295290

296291
def sphinx_parallel_arg(self):

readthedocs/projects/models.py

-10
Original file line numberDiff line numberDiff line change
@@ -1596,10 +1596,8 @@ def add_features(sender, **kwargs):
15961596
INDEX_FROM_HTML_FILES = 'index_from_html_files'
15971597
SEARCH_SUBPROJECTS_ON_DEFAULT_VERSION = 'search_subprojects_on_default_version'
15981598

1599-
FORCE_SPHINX_FROM_VENV = 'force_sphinx_from_venv'
16001599
LIST_PACKAGES_INSTALLED_ENV = 'list_packages_installed_env'
16011600
VCS_REMOTE_LISTING = 'vcs_remote_listing'
1602-
STORE_PAGEVIEWS = 'store_pageviews'
16031601
SPHINX_PARALLEL = 'sphinx_parallel'
16041602
USE_SPHINX_BUILDERS = 'use_sphinx_builders'
16051603
DEDUPLICATE_BUILDS = 'deduplicate_builds'
@@ -1726,10 +1724,6 @@ def add_features(sender, **kwargs):
17261724
),
17271725
),
17281726

1729-
(
1730-
FORCE_SPHINX_FROM_VENV,
1731-
_('Force to use Sphinx from the current virtual environment'),
1732-
),
17331727
(
17341728
LIST_PACKAGES_INSTALLED_ENV,
17351729
_(
@@ -1741,10 +1735,6 @@ def add_features(sender, **kwargs):
17411735
VCS_REMOTE_LISTING,
17421736
_('Use remote listing in VCS (e.g. git ls-remote) if supported for sync versions'),
17431737
),
1744-
(
1745-
STORE_PAGEVIEWS,
1746-
_('Store pageviews for this project'),
1747-
),
17481738
(
17491739
SPHINX_PARALLEL,
17501740
_('Use "-j auto" when calling sphinx-build'),

0 commit comments

Comments
 (0)