From a45cb42c961a0575c713537e289078a026c681b2 Mon Sep 17 00:00:00 2001 From: Jeff Raymakers Date: Sun, 23 Jun 2024 11:57:13 -0700 Subject: [PATCH] try fix win copy --- generate-wrapper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/generate-wrapper.py b/generate-wrapper.py index 6c122d29..3649c255 100644 --- a/generate-wrapper.py +++ b/generate-wrapper.py @@ -238,8 +238,6 @@ def get_lib_file_name(): raise Exception("Unsupported system: " + system) if __name__ == "__main__": - # dir_path = os.path.dirname(os.path.realpath(__file__)) - with tempfile.TemporaryDirectory() as zip_tmp: zip_path = os.path.join(zip_tmp, "libduckdb.zip") @@ -262,7 +260,7 @@ def get_lib_file_name(): target_lib_file_path = os.path.join("lib", "binding", "libduckdb") print("Copying lib to " + target_lib_file_path) - shutil.copy(extracted_lib_file_path, target_lib_file_path) + shutil.copyfile(extracted_lib_file_path, target_lib_file_path) print("Extracting duckdb.h to src") zip.extract("duckdb.h", "src")