Python: generate Python kits for new interpreter

Change-Id: Ie4b23aae296f66900fba85a9e243bbf656e49ed4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2023-10-19 13:00:48 +02:00
parent 20d355e235
commit 28b70672b4
3 changed files with 118 additions and 1 deletions

View File

@@ -42,6 +42,8 @@ public:
const std::function<void(std::optional<Interpreter>)> &callback,
const QString &nameSuffix = {});
static QList<Interpreter> detectPythonVenvs(const Utils::FilePath &path);
static void addKitsForInterpreter(const Interpreter &interpreter);
static void removeKitsForInterpreter(const Interpreter &interpreter);
signals:
void interpretersChanged(const QList<Interpreter> &interpreters, const QString &defaultId);
@@ -57,6 +59,7 @@ public slots:
void listDetectedPython(const QString &detectionSource, QString *logMessage);
private:
void fixupPythonKits();
void initFromSettings(Utils::QtcSettings *settings);
void writeToSettings(Utils::QtcSettings *settings);