[python] PY-83881 Detect existing environments when creating SDK

Before the changes, there wasn't any mechanism to detect that
environment was already created (for example, .venv exists in the
project). In these situations, during SDK creation we could've created
another environment which was not expected by users.

With these changes, it's now possible to detect in the configurator that
environment already exists, and use it when creating SDK.

Merge-request: IJ-MR-177317
Merged-by: Alexey Katsman <alexey.katsman@jetbrains.com>

GitOrigin-RevId: dd0cf0c02b18e90022e9ec828b7f9ad2282cd5b3
This commit is contained in:
Alexey Katsman
2025-10-21 21:47:11 +00:00
committed by intellij-monorepo-bot
parent d511ce0919
commit cc191a617f
54 changed files with 886 additions and 418 deletions
@@ -10,6 +10,7 @@
<module name="intellij.python.community.execService.python"/>
<module name="intellij.python.community.interpreters"/>
<module name="intellij.python.community.impl.poetry"/>
<module name="intellij.python.community.impl.pipenv"/>
<module name="intellij.python.hatch"/>
<module name="intellij.python.pydev"/>
<module name="intellij.python.sdk.ui"/>
@@ -85,6 +86,7 @@
<extensions defaultExtensionNs="com.intellij.python.pyproject.model">
<tool implementation="com.jetbrains.python.projectModel.poetry.PoetryTool"/>
<tool implementation="com.jetbrains.python.projectModel.uv.UvTool"/>
<tool implementation="com.jetbrains.python.projectModel.hatch.HatchTool"/>
</extensions>
<projectListeners>
@@ -373,6 +373,7 @@ python.sdk.next=Next
python.sdk.previous=Previous
python.sdk.finish=Finish
python.sdk.setting.up.pipenv.sentence=Setting up pipenv environment
python.sdk.using.pipenv.sentence=Using pipenv environment
python.sdk.setting.up.pipenv.title=Setting up Pipenv Environment
python.sdk.install.requirements.from.pipenv.lock=Install requirements from Pipfile.lock
python.sdk.pipenv.executable=Pipenv executable: