From 93b0053947ef174c72579ee04f3d9b123bb2caea Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Thu, 26 Jan 2023 13:39:05 -0800 Subject: [PATCH] Skip requirement files from `site-packages` or `__pypackages__` (#20573) Fixes https://github.com/microsoft/vscode-python/issues/20560 --- src/client/pythonEnvironments/creation/provider/venvUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pythonEnvironments/creation/provider/venvUtils.ts b/src/client/pythonEnvironments/creation/provider/venvUtils.ts index f1644c8597fa..b677c2e40daa 100644 --- a/src/client/pythonEnvironments/creation/provider/venvUtils.ts +++ b/src/client/pythonEnvironments/creation/provider/venvUtils.ts @@ -11,7 +11,7 @@ import { showQuickPick } from '../../../common/vscodeApis/windowApis'; import { findFiles } from '../../../common/vscodeApis/workspaceApis'; import { traceError, traceVerbose } from '../../../logging'; -const exclude = '**/{.venv*,.git,.nox,.tox,.conda}/**'; +const exclude = '**/{.venv*,.git,.nox,.tox,.conda,site-packages,__pypackages__}/**'; async function getPipRequirementsFiles( workspaceFolder: WorkspaceFolder, token?: CancellationToken,