diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 16:27:58 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 16:27:58 +0900 |
commit | 55ed7ea14f6eb00d45a2c1e086fa63ba7ba02a18 (patch) | |
tree | b6067283a2e7f2faa2435b0ea140e2951e13afa3 /installer | |
parent | 1bd8222f25a07bf48d12c020e553f0a2dd616aae (diff) | |
download | vim-lsp-settings-55ed7ea14f6eb00d45a2c1e086fa63ba7ba02a18.tar.gz vim-lsp-settings-55ed7ea14f6eb00d45a2c1e086fa63ba7ba02a18.tar.bz2 vim-lsp-settings-55ed7ea14f6eb00d45a2c1e086fa63ba7ba02a18.zip |
Use pip_install.cmd
Diffstat (limited to 'installer')
-rw-r--r-- | installer/install-pyls.cmd | 13 | ||||
-rw-r--r-- | installer/pip_install.cmd | 18 |
2 files changed, 19 insertions, 12 deletions
diff --git a/installer/install-pyls.cmd b/installer/install-pyls.cmd index 154f2d0..7b62104 100644 --- a/installer/install-pyls.cmd +++ b/installer/install-pyls.cmd @@ -1,16 +1,5 @@ @echo off cd %~dp0 -if exist "..\servers\pyls" rd /S /Q "..\servers\pyls" -md "..\servers\pyls" -cd "..\servers\pyls" - -python3 -m venv ./venv -venv\bin\pip3 install python-language-server - -echo @echo off ^ - -venv\bin\pyls ^ - -> pyls.cmd +call pip_install pyls python-language-server diff --git a/installer/pip_install.cmd b/installer/pip_install.cmd new file mode 100644 index 0000000..9b8a0b1 --- /dev/null +++ b/installer/pip_install.cmd @@ -0,0 +1,18 @@ +@echo off + +if "x%1" equ "x" goto :EOF +if "x%2" equ "x" goto :EOF + +set server_dir="..\servers\%1" +rd /Q /S "%server_dir%" 2>NUL +md "%server_dir%" +cd "%server_dir%" + +python3 -m venv ./venv +venv\bin\pip3 install %2 + +echo @echo off ^ + +%%~dp0\venv\bin\%1.cmd %%* ^ + +> %1.cmd |