Browse Source

Add entrypoint info to conandata

With the new PyCharmRunEnv generate conan
should automatically create a pycahrm run
target, setting the paths correctly.

Usage as: `conan instal ....... -g PyCharmRunEnv`

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
aaed543a22
2 changed files with 6 additions and 1 deletions
  1. 5 0
      conandata.yml
  2. 1 1
      conanfile.py

+ 5 - 0
conandata.yml

@@ -15,6 +15,11 @@ requirements:
         - "uranium/[~5.1.0-cura_9365]@ultimaker/testing"
         - "fdm_materials/[~5.1.0-cura_9365]@ultimaker/testing"
         - "cura_binary_data/[~5.1.0-cura_9365]@ultimaker/testing"
+runinfo:
+    "5.1.0-beta":
+        entrypoint: "cura_app.py"
+    "5.1.0-cura_9365":
+        entrypoint: "cura_app.py"
 pyinstaller:
     "5.1.0-beta":
         datas:

+ 1 - 1
conanfile.py

@@ -166,7 +166,7 @@ class CuraConan(ConanFile):
         with open(Path(self.generators_folder, "Ultimaker-Cura.spec"), "w") as f:
             f.write(pyinstaller.render(
                 name = str(self.options.display_name).replace(" ", "-"),
-                entrypoint = "cura_app.py",
+                entrypoint = self.conan_data["runinfo"][self._conan_data_version]["entrypoint"],
                 datas = datas,
                 binaries = binaries,
                 hiddenimports = pyinstaller_metadata["hiddenimports"],