Skip to content

Commit a071a81

Browse files
authored
Merge pull request #5110 from stsewd/use-python-from-ve-conda
Use the python path from virtualenv in Conda
2 parents 35856b0 + 5039d9a commit a071a81

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ def install_core_requirements(self):
401401
)
402402

403403
pip_cmd = [
404-
'python',
405-
self.venv_bin(filename='pip'),
404+
self.venv_bin(filename='python'),
405+
'-m',
406+
'pip',
406407
'install',
407408
'-U',
408409
'--cache-dir',

readthedocs/rtd_tests/tests/test_doc_building.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,8 +1330,9 @@ def test_install_core_requirements_sphinx_conda(self, checkout_path):
13301330
]
13311331

13321332
args_pip = [
1333-
'python',
1334-
mock.ANY, # pip path
1333+
mock.ANY, # python path
1334+
'-m',
1335+
'pip',
13351336
'install',
13361337
'-U',
13371338
'--cache-dir',
@@ -1370,8 +1371,9 @@ def test_install_core_requirements_mkdocs_conda(self, checkout_path):
13701371
]
13711372

13721373
args_pip = [
1373-
'python',
1374-
mock.ANY, # pip path
1374+
mock.ANY, # python path
1375+
'-m',
1376+
'pip',
13751377
'install',
13761378
'-U',
13771379
'--cache-dir',

0 commit comments

Comments
 (0)