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
This commit is contained in:
j.spijker@ultimaker.com 2022-06-17 18:12:22 +02:00 committed by jspijker
parent f6aa409701
commit aaed543a22
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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"],