python: Remove a redundant pip install call (#38449)
Peter Tripp
created
I confirmed that the pip packages match for:
```sh
pip install python-lsp-server && pip install 'python-lsp-server[all]'
pip install 'python-lsp-server[all]'
```
Originally introduced here:
- https://github.com/zed-industries/zed/pull/20358
Release Notes:
- N/A
Change summary
crates/languages/src/python.rs | 11 -----------
1 file changed, 11 deletions(-)
Detailed changes
@@ -1555,17 +1555,6 @@ impl LspInstaller for PyLspAdapter {
) -> Result<LanguageServerBinary> {
let venv = self.base_venv(delegate).await.map_err(|e| anyhow!(e))?;
let pip_path = venv.join(BINARY_DIR).join("pip3");
- ensure!(
- util::command::new_smol_command(pip_path.as_path())
- .arg("install")
- .arg("python-lsp-server")
- .arg("--upgrade")
- .output()
- .await?
- .status
- .success(),
- "python-lsp-server installation failed"
- );
ensure!(
util::command::new_smol_command(pip_path.as_path())
.arg("install")