From b00312d35a1ff57923053e5e8e60857e1f0d6912 Mon Sep 17 00:00:00 2001 From: Sridhar <59284206+sridhar562345@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:26:29 +0530 Subject: [PATCH] remove usage of copytree from distutils (#1352) --- 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: