Add debug information for python dependencies generation

This commit is contained in:
Erwan MATHIEU 2024-11-15 11:33:42 +01:00
parent f50676a18c
commit cd48c7cb9d

View file

@ -154,11 +154,13 @@ class CuraConan(ConanFile):
env = "conanrun", env = "conanrun",
stdout = buffer) stdout = buffer)
print(f"############################################################ {buffer.getvalue()}")
packages = str(buffer.getvalue()).strip('\r\n').split(";") packages = str(buffer.getvalue()).strip('\r\n').split(";")
for package in packages: for package in packages:
name, version = package.split(",") name, version = package.split(",")
python_installs[name] = {"version": version} python_installs[name] = {"version": version}
print(python_installs)
return python_installs return python_installs
def _generate_cura_version(self, location): def _generate_cura_version(self, location):
@ -173,6 +175,8 @@ class CuraConan(ConanFile):
internal_tag = f"+internal" if self.options.internal else "" internal_tag = f"+internal" if self.options.internal else ""
cura_version = f"{cura_version.major}.{cura_version.minor}.{cura_version.patch}{pre_tag}{build_tag}{internal_tag}" cura_version = f"{cura_version.major}.{cura_version.minor}.{cura_version.patch}{pre_tag}{build_tag}{internal_tag}"
self.output.info(f"Write CuraVersion.py to {self.recipe_folder}")
with open(os.path.join(location, "CuraVersion.py"), "w") as f: with open(os.path.join(location, "CuraVersion.py"), "w") as f:
f.write(cura_version_py.render( f.write(cura_version_py.render(
cura_app_name = self.name, cura_app_name = self.name,