[python]: PY-85585 : Do not display vens as system pythons in "Add new interpreter" window.

Instead of old `addManuallyAddedInterpreter` we now have two functions: one that requires system python and one that doesn't.

Both functions register system python if provided, but the latter one accepts any python (venv included).

Various "selectors" use these functions.

We also make sure no non-system python is set to `baseInterpreters`: base are always system!

As a bonus, we show "system" or "virtual env" title near interpreter.

It now checks that python is system (see `ensureSystemPython`).

Non-system pythons are never reported, and `registerSystemPython` also returns an error for non-system pythons

We need `execGetBoolFromStdout` for the further changes


Merge-request: IJ-MR-182415
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 2950f5f0cd2745c12987a92e40774d366568f312
This commit is contained in:
Ilya Kazakevich
2025-11-19 14:24:40 +00:00
committed by intellij-monorepo-bot
parent a9f6656b2e
commit 679db704aa
25 changed files with 266 additions and 108 deletions

View File

@@ -1,3 +1,4 @@
python.get.version.error={0} returned error: {1}
python.get.version.wrong.version={0} has a wrong version: {1}
python.cannot.exec=Python {0} could not be executed
python.check.threading.fail=Can not check for python threading model