From 3de858c8b55663098ed1014b75b91718d1006ce0 Mon Sep 17 00:00:00 2001 From: Vinod R Iyer Date: Mon, 27 Apr 2026 14:42:31 +0530 Subject: [PATCH] build(cli): Added extra files and folders to ignore for packaging python lambdas in Gen 1 backend --- .../src/util/packageUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/amplify-python-function-runtime-provider/src/util/packageUtils.ts b/packages/amplify-python-function-runtime-provider/src/util/packageUtils.ts index 1b62e10a118..4db20871022 100644 --- a/packages/amplify-python-function-runtime-provider/src/util/packageUtils.ts +++ b/packages/amplify-python-function-runtime-provider/src/util/packageUtils.ts @@ -53,6 +53,9 @@ export async function pythonPackage(context: any, params: PackageRequest): Promi '**/test/**', '**/tests/**', 'distutils**', + '**/pip/**', + '**/*.dist-info/**', + '*.virtualenv', 'pip**', 'pkg_resources**', 'setuptools**',