From 136e45db7ea0088722493aa59d6ef052cd87835e Mon Sep 17 00:00:00 2001 From: YurunChen <1657503372@qq.com> Date: Mon, 8 Jun 2026 22:55:17 +0800 Subject: [PATCH] fix(agent): install main module and gradio for CLI and Web UI Register main.py via py_modules so the phone-agent console entry point works after pip install -e ., and declare gradio in install_requires so webui.py runs without a separate requirements.txt install step. --- clawgui-agent/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clawgui-agent/setup.py b/clawgui-agent/setup.py index b35c2b1..6aad3df 100644 --- a/clawgui-agent/setup.py +++ b/clawgui-agent/setup.py @@ -14,8 +14,9 @@ description="AI-powered phone automation framework", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/yourusername/phone-agent", + url="https://github.com/ZJU-REAL/ClawGUI/tree/master/clawgui-agent", packages=find_packages(), + py_modules=["main"], classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", @@ -32,6 +33,7 @@ install_requires=[ "Pillow>=12.0.0", "openai>=2.9.0", + "gradio>=4.0.0", ], extras_require={ "dev": [