From 2c2edb3a17208155f85efec1509e7245794f26e5 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Wed, 12 Aug 2026 09:27:13 +0200 Subject: [PATCH] convertx: use uv tool install instead of pipx for markitdown --- ct/convertx.sh | 7 ++++--- install/convertx-install.sh | 10 ++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ct/convertx.sh b/ct/convertx.sh index 64dcd8e536f..5689d163578 100644 --- a/ct/convertx.sh +++ b/ct/convertx.sh @@ -34,12 +34,13 @@ function update_script() { systemctl stop convertx msg_info "Stopped Service" - ensure_dependencies libreoffice-writer dasel graphicsmagick libemail-outlook-message-perl libheif-examples libjxl-tools pipx python3-pip resvg + ensure_dependencies libreoffice-writer dasel graphicsmagick libemail-outlook-message-perl libheif-examples libjxl-tools resvg if ! command -v markitdown &>/dev/null; then + setup_uv msg_info "Installing markitdown" - export PIPX_BIN_DIR=/usr/local/bin - $STD pipx install "markitdown[all]" + export UV_TOOL_BIN_DIR=/usr/local/bin + $STD uv tool install "markitdown[all]" msg_ok "Installed markitdown" fi diff --git a/install/convertx-install.sh b/install/convertx-install.sh index 428fcb1dff5..ca4e4d8033c 100644 --- a/install/convertx-install.sh +++ b/install/convertx-install.sh @@ -35,11 +35,9 @@ $STD apt install -y \ lmodern \ mupdf-tools \ pandoc \ - pipx \ poppler-utils \ potrace \ python3-numpy \ - python3-pip \ resvg \ texlive \ texlive-fonts-recommended \ @@ -48,13 +46,13 @@ $STD apt install -y \ texlive-xetex msg_ok "Installed Dependencies" +setup_uv + msg_info "Installing markitdown" -export PIPX_BIN_DIR=/usr/local/bin -$STD pipx install "markitdown[all]" +export UV_TOOL_BIN_DIR=/usr/local/bin +$STD uv tool install "markitdown[all]" msg_ok "Installed markitdown" -# Pinned to match ConvertX's own Dockerfile - vtracer's "latest" release is now -# for an unrelated desktop app and may drop these CLI binaries. fetch_and_deploy_gh_release "vtracer" "visioncortex/vtracer" "prebuild" "0.6.4" "/usr/local/bin" "vtracer-$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl.tar.gz" NODE_VERSION="22" NODE_MODULE="bun" setup_nodejs