Skip to content

Commit 6c39741

Browse files
authored
Add support for poetry and mac-xcode (#23668)
1 parent 54fd4ae commit 6c39741

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,14 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativeGloba
9595
case 'homebrew':
9696
case 'mac-python-org':
9797
case 'mac-command-line-tools':
98+
case 'mac-xcode':
9899
case 'windows-registry':
99100
return PythonEnvKind.System;
100101
case 'pyenv':
101102
case 'pyenv-other':
102103
return PythonEnvKind.Pyenv;
104+
case 'poetry':
105+
return PythonEnvKind.Poetry;
103106
case 'pipenv':
104107
return PythonEnvKind.Pipenv;
105108
case 'pyenv-virtualenv':

src/client/pythonEnvironments/base/locators/lowLevel/nativeLocator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function toolToKnownEnvironmentTool(tool: string): KnownEnvironmentTools {
1818
switch (tool.toLowerCase()) {
1919
case 'conda':
2020
return 'Conda';
21+
case 'poetry':
22+
return 'Poetry';
2123
case 'pyenv':
2224
return 'Pyenv';
2325
default: {

0 commit comments

Comments
 (0)