Finally got eCAL to build, including all dependencies.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user