forked from qt-creator/qt-creator
Python: install pyls with [all] tag on windows
Pylint caused some troubles on windows, but since 0.31.0 it is disabled by default, so we can safely install the complete python language server on all platforms now. Change-Id: I2f7047e71308040c41d996679d19868c4e6fe73a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -257,12 +257,7 @@ public:
|
|||||||
connect(&m_killTimer, &QTimer::timeout, this, &PythonLSInstallHelper::cancel);
|
connect(&m_killTimer, &QTimer::timeout, this, &PythonLSInstallHelper::cancel);
|
||||||
connect(&m_watcher, &QFutureWatcher<void>::canceled, this, &PythonLSInstallHelper::cancel);
|
connect(&m_watcher, &QFutureWatcher<void>::canceled, this, &PythonLSInstallHelper::cancel);
|
||||||
|
|
||||||
// on windows the pyls 0.28.3 crashes with pylint so just install the pyflakes linter
|
QStringList arguments = {"-m", "pip", "install", "python-language-server[all]"};
|
||||||
const QString &pylsVersion = HostOsInfo::isWindowsHost()
|
|
||||||
? QString{"python-language-server[pyflakes]"}
|
|
||||||
: QString{"python-language-server[all]"};
|
|
||||||
|
|
||||||
QStringList arguments = {"-m", "pip", "install", pylsVersion};
|
|
||||||
|
|
||||||
// add --user to global pythons, but skip it for venv pythons
|
// add --user to global pythons, but skip it for venv pythons
|
||||||
if (!QDir(m_python.parentDir().toString()).exists("activate"))
|
if (!QDir(m_python.parentDir().toString()).exists("activate"))
|
||||||
|
|||||||
Reference in New Issue
Block a user