Finally got eCAL to build, including all dependencies.

This commit is contained in:
Stephan Menzel
2025-06-25 17:49:34 +02:00
parent 62747bab18
commit ab11f36e72
22 changed files with 605 additions and 59 deletions
+7 -1
View File
@@ -1,7 +1,7 @@
# (c) 2025 by Stephan Menzel
# Licensed under the Apache License, Version 2.0.
# See attached file LICENSE for full details
from typing import Self
import json
from pathlib import Path
@@ -58,6 +58,12 @@ class PackageInfo:
self.license_name = pckdict["license_name"]
self.license_url = pckdict["license_url"]
def dependency(self, package_name: str) -> Self:
"""Give the path underneath which the package, according to its version, is installed"""
if package_name not in self.dependencies:
raise DependencyInfoError(f"Cannot find dependency {package_name} in {self.name}.")
return self.dependencies[package_name]
def dependency_path(self, package_name: str) -> Path:
"""Give the path underneath which the package, according to its version, is installed"""
if package_name not in self.dependencies: