We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec23bc9 commit 2c11c0aCopy full SHA for 2c11c0a
readthedocs/doc_builder/python_environments.py
@@ -47,8 +47,8 @@ def delete_existing_build_dir(self):
47
shutil.rmtree(build_dir)
48
49
def install_package(self):
50
- setup_path = os.path.join(self.checkout_path, 'setup.py')
51
- if os.path.isfile(setup_path) and self.config.install_project:
+ if self.config.install_project:
+ setup_path = os.path.join(self.checkout_path, 'setup.py')
52
if self.config.pip_install or getattr(settings, 'USE_PIP_INSTALL', False):
53
extra_req_param = ''
54
if self.config.extra_requirements:
@@ -65,7 +65,7 @@ def install_package(self):
65
cwd=self.checkout_path,
66
bin_path=self.venv_bin()
67
)
68
- else:
+ elif os.path.isfile(setup_path):
69
self.build_env.run(
70
'python',
71
'setup.py',
0 commit comments