Re-add install clause for Python

This commit is contained in:
Radon Rosborough 2021-01-02 10:18:15 -08:00
parent b849045d12
commit ec94a44030
1 changed files with 14 additions and 0 deletions

View File

@ -36,6 +36,20 @@ info:
- oo
usage: popular
install:
apt:
- python3
- python3-pip
- black
manual:
- |
install -d "${pkg}/opt/mspyls"
install -d "${pkg}/usr/local/bin"
wget "$(curl -fsSL "https://pvsc.blob.core.windows.net/python-language-server-stable?restype=container&comp=list&prefix=Python-Language-Server-linux-x64" | grep -Eo 'https://[^<]+\.nupkg' | tail -n1)"
unzip -d "${pkg}/opt/mspyls" Python-Language-Server-linux-x64.*.nupkg
chmod +x "${pkg}/opt/mspyls/Microsoft.Python.LanguageServer"
ln -s "/opt/mspyls/Microsoft.Python.LanguageServer" "${pkg}/usr/local/bin/Microsoft.Python.LanguageServer"
repl: |
python3 -u