From 1a7ebfc01fd795618913d40a207fea1511b32b41 Mon Sep 17 00:00:00 2001 From: "David M. Raker" Date: Tue, 3 Mar 2026 17:26:47 -0800 Subject: [PATCH 1/2] Fixed relative position on entry_points in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 71ae773..bf9685c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,8 +59,8 @@ Sphinx = ">=4.5.0,<5.0.0" sphinx-rtd-theme = ">=1.0.0,<2.0.0" [tool.poetry.scripts] -vdrv = "volttron.plugins.vctl.driver.parser:main" volttron-platform-driver = "platform_driver.agent:main" +vdrv = "volttron.plugins.vctl.driver.parser:main" [tool.yapf] based_on_style = "pep8" From 724463f53d94b346d788e636714f8a6b4e9f2a7e Mon Sep 17 00:00:00 2001 From: "David M. Raker" Date: Tue, 3 Mar 2026 18:33:55 -0800 Subject: [PATCH 2/2] Fixed installation of interfaces on modular. --- src/platform_driver/agent.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/platform_driver/agent.py b/src/platform_driver/agent.py index 457c71c..1914757 100644 --- a/src/platform_driver/agent.py +++ b/src/platform_driver/agent.py @@ -713,7 +713,14 @@ def add_interface(self, interface_name: str, force: bool = False, pre_release: b package_name = install_path = self._interface_package_from_short_name(interface_name) try: distribution('volttron-core') - arguments = Namespace(install_path=install_path, force=force, pre_release=pre_release) + from functools import partial + # TODO: This method should probably be moved at least mostly into vctl, + # and it should call the control service directly. + # Otherwise, this may try to package a directory which is on the client here on the server. + class Conn: + call = partial(self.vip.rpc.call, 'platform.control') + arguments = Namespace(connection=Conn(), install_path=install_path, + force=force, pre_release=pre_release) try: with redirect_stdout(st_out := StringIO()): install_lib_vctl(arguments)