pip to uv
frdel committed
Jun 5, 2025 at 20:25 UTC
fe98375e8eec865fe1fc3a680c336ff80b494ddc
3 files changed
+5
-4
docker/run/fs/ins/install_A0.sh
+2
-2
@@ -24,7 +24,7 @@ git clone -b "$BRANCH" "https://github.com/frdel/agent-zero" "/git/agent-zero" |
24
# # Install some packages in specific variants
25
# pip install torch --index-url https://download.pytorch.org/whl/cpu
26
27
-pip install -v mcp==1.3.0 || {
27
+uv pip install -v mcp==1.3.0 || {
28
echo "ERROR: Failed during separate attempt to install mcp==1.3.0. Will proceed to full requirements.txt install anyway."
29
}
30
python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp.ClientSession imported successfully after separate install. mcp path: {mcp.__file__}')" || {
@@ -32,7 +32,7 @@ python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp
32
}
33
34
# Install remaining A0 python packages
35
-pip install -r /git/agent-zero/requirements.txt
35
+uv pip install -r /git/agent-zero/requirements.txt
36
37
python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp.ClientSession imported successfully after requirements.txt. mcp path: {mcp.__file__}')" || {
38
echo "CRITICAL ERROR: mcp package or mcp.ClientSession not found or failed to import after requirements.txt processing."
docker/run/fs/ins/install_A02.sh
+2
-1
@@ -10,4 +10,5 @@ bash /ins/install_A0.sh "$@"
10
11
# remove python packages cache
12
. "/ins/setup_venv.sh" "$@"
13
-pip cache purge
\ No newline at end of file
13
+pip cache purge
14
+uv cache prune
\ No newline at end of file
docker/run/fs/ins/install_playwright.sh
+1
-1
@@ -4,7 +4,7 @@
4
. "/ins/setup_venv.sh" "$@"
5
6
# install playwright if not installed (should be from requirements.txt)
7
-pip install playwright
7
+uv pip install playwright
8
9
# install chromium with dependencies
10
# for kali-based