Skip to content

Install latest version of pip #4938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 4, 2018
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readthedocs/doc_builder/python_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def install_core_requirements(self):

# Install latest pip first,
# so it is used when installing the other requirements.
cmd = pip_install_cmd + ['pip==18.1']
cmd = pip_install_cmd + ['pip']
self.build_env.run(
*cmd,
bin_path=self.venv_bin(),
Expand Down Expand Up @@ -273,14 +273,14 @@ def install_core_requirements(self):
'readthedocs-sphinx-ext<0.6'
])

cmd = pip_install_cmd
cmd = pip_install_cmd.copy()
if self.config.python.use_system_site_packages:
# Other code expects sphinx-build to be installed inside the
# virtualenv. Using the -I option makes sure it gets installed
# even if it is already installed system-wide (and
# --system-site-packages is used)
cmd += ['-I']
cmd += requirements
cmd.append('-I')
cmd.extend(requirements)
self.build_env.run(
*cmd,
bin_path=self.venv_bin(),
Expand Down