Do not include enterprise resources if not needed

This commit is contained in:
Erwan MATHIEU 2024-11-14 15:04:39 +01:00
parent 85cd142266
commit 3910ab0b78
2 changed files with 3 additions and 1 deletions

View file

@ -194,7 +194,7 @@ class CuraConan(ConanFile):
pyinstaller_metadata = self.conan_data["pyinstaller"]
datas = []
for data in pyinstaller_metadata["datas"].values():
if not self.options.internal and data.get("internal", False):
if (not self.options.internal and data.get("internal", False)) or (not self.options.enterprise and data.get("enterprise_only", False)):
continue
if "oses" in data and self.settings.os not in data["oses"]: