From 1f4956de1b11726a0a89813e8436130518443e9a Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Mon, 27 Mar 2023 11:46:39 +0200 Subject: [PATCH] Make it work with the export_sources method Contributes to CURA-10317 --- conanfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 619d00b39b..f949c4b014 100644 --- a/conanfile.py +++ b/conanfile.py @@ -21,7 +21,6 @@ class CuraConan(ConanFile): description = "3D printer / slicing GUI built on top of the Uranium framework" topics = ("conan", "python", "pyqt6", "qt", "qml", "3d-printing", "slicer") build_policy = "missing" - exports = "LICENSE*", "UltiMaker-Cura.spec.jinja", "CuraVersion.py.jinja" settings = "os", "compiler", "build_type", "arch" no_copy_source = True # We won't build so no need to copy sources to the build folder @@ -140,7 +139,7 @@ class CuraConan(ConanFile): return "None" def _generate_cura_version(self, location): - with open(os.path.join(self.recipe_folder, "CuraVersion.py.jinja"), "r") as f: + with open(os.path.join(self.source_folder, "CuraVersion.py.jinja"), "r") as f: cura_version_py = Template(f.read()) # If you want a specific Cura version to show up on the splash screen add the user configuration `user.cura:version=VERSION` @@ -259,6 +258,7 @@ class CuraConan(ConanFile): copy(self, "UltiMaker-Cura.spec.jinja", self.recipe_folder, self.export_sources_folder) copy(self, "CuraVersion.py.jinja", self.recipe_folder, self.export_sources_folder) copy(self, "cura_app.py", self.recipe_folder, self.export_sources_folder) + copy(self, "LICENSE", self.recipe_folder, self.export_sources_folder) def configure(self): self.options["pyarcus"].shared = True