From 71d834a60a4af8e62d2795f17093798af66914b0 Mon Sep 17 00:00:00 2001 From: sridhar562345 Date: Mon, 23 Sep 2024 09:40:40 +0530 Subject: [PATCH] remove usage of copytree from distutils --- zappa/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zappa/core.py b/zappa/core.py index f71134f16..12a143be0 100644 --- a/zappa/core.py +++ b/zappa/core.py @@ -19,7 +19,6 @@ import uuid import zipfile from builtins import bytes, int -from distutils.dir_util import copy_tree from io import open from pathlib import Path from typing import Optional @@ -687,7 +686,7 @@ def splitpath(path): if egg_links: self.copy_editable_packages(egg_links, temp_package_path) - copy_tree(temp_package_path, temp_project_path, update=True) + copytree(temp_package_path, temp_project_path, metadata=False, symlinks=False) # Then the pre-compiled packages.. if use_precompiled_packages: