[python] PY-84315: Use SDK configurators for inspection

There was a problem that we can detect uv environment as a virtualenv in
PyInterpreterInspection. The problem is that we don't use the knowledge
about the existing environment anyhow.

This change relies on SDK configurators to tell whether environment is
present or can be configured.

GitOrigin-RevId: 27f55c7d1b4712b0b8c3d39b1b8f7d8643680910
This commit is contained in:
Alexey Katsman
2025-10-16 15:39:17 +02:00
committed by intellij-monorepo-bot
parent 033d7cc704
commit 9140cb4e7b
5 changed files with 18 additions and 105 deletions

View File

@@ -91,12 +91,6 @@
</extensions>
<projectListeners>
<listener
class="com.jetbrains.python.inspections.PyInterpreterInspection$Visitor$CacheCleaner"
topic="com.intellij.platform.backend.workspace.WorkspaceModelChangeListener"/>
<listener
class="com.jetbrains.python.inspections.PyInterpreterInspection$Visitor$CacheCleaner"
topic="com.intellij.openapi.projectRoots.ProjectJdkTable$Listener"/>
<listener class="com.jetbrains.python.packaging.PyDependencyCollectorListener"
topic="com.jetbrains.python.packaging.common.PythonPackageManagementListener"/>
<listener class="com.jetbrains.python.statistics.PyPackageDaemonListener"