From e6512ce080f17cb4a4760672564db57a74d5a983 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Tue, 20 Sep 2022 04:45:41 +0200 Subject: [PATCH] Fix missing copy_file (related to #770) --- setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 98472c5efe..f5811e9ea6 100644 --- a/setup.py +++ b/setup.py @@ -349,10 +349,8 @@ def build_extension(self, ext): sdk_path = str(sdk_path.pop()) sdk_output = str(pathlib.Path(CURRENT_DIR) / "build") - - copy_file( - sdk_path, sdk_output, verbose=self.verbose, - dry_run=self.dry_run) + if not self.dry_run: + copy2(sdk_path, sdk_output) def get_platform(): out = get_platform_backup()