diff --git a/clearml_agent/helper/package/poetry_api.py b/clearml_agent/helper/package/poetry_api.py index def9387..45480dd 100644 --- a/clearml_agent/helper/package/poetry_api.py +++ b/clearml_agent/helper/package/poetry_api.py @@ -69,7 +69,7 @@ def run(self, *args, **kwargs): path = path.replace(':'+sys.base_prefix, ':'+sys.real_prefix, 1) kwargs['env']['PATH'] = path - if self.session and self.session.config: + if self.session and self.session.config and args and args[0] == "install": extra_args = self.session.config.get("agent.package_manager.poetry_install_extra_args", None) if extra_args: args = args + tuple(extra_args)