Skip to content

Commit 03f7165

Browse files
committed
Always try "python setup.py install" as a fallback
1 parent 2c11c0a commit 03f7165

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def delete_existing_build_dir(self):
4848

4949
def install_package(self):
5050
if self.config.install_project:
51-
setup_path = os.path.join(self.checkout_path, 'setup.py')
5251
if self.config.pip_install or getattr(settings, 'USE_PIP_INSTALL', False):
5352
extra_req_param = ''
5453
if self.config.extra_requirements:
@@ -65,7 +64,7 @@ def install_package(self):
6564
cwd=self.checkout_path,
6665
bin_path=self.venv_bin()
6766
)
68-
elif os.path.isfile(setup_path):
67+
else:
6968
self.build_env.run(
7069
'python',
7170
'setup.py',

0 commit comments

Comments
 (0)