From 9ec39a9c7e7648b451dfaf1b0af5ecfdac54f071 Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Mon, 13 Jun 2022 17:03:41 +0200 Subject: [PATCH] Moved handling of the sources to the generate function When running `conan source .` on ubuntu the `.git` folder was removed, happens with cona 1.47 ... 1.49 This seems to be a bug in Conan, I will try to reproduce it and create an issue in their repo. Contributes to CURA-9365 --- conanfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 8ce944b856..d24cdc02f0 100644 --- a/conanfile.py +++ b/conanfile.py @@ -100,7 +100,7 @@ class CuraConan(ConanFile): for req in self.conan_data[self.version]["conan"].values(): self.requires(req) - def source(self): + def generate(self): for source in self.conan_data[self.version]["sources"].values(): src_path = Path(self.source_folder, source["root"], source["src"]) if not src_path.exists(): @@ -120,7 +120,6 @@ class CuraConan(ConanFile): else: shutil.copytree(src_path, dst_root_path) - def generate(self): with open(Path(self.source_folder, "cura", "CuraVersion.py.jinja"), "r") as f: cura_version_py = Template(f.read())