Browse Source

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
j.spijker@ultimaker.com 2 years ago
parent
commit
9ec39a9c7e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      conanfile.py

+ 1 - 2
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())