fix(erpnext): use get-pip.py instead of ensurepip

uv's bundled Python has ensurepip stripped out.
Bootstrap pip via get-pip.py from pypa instead.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 15:54:39 +01:00
parent d817b4326c
commit 61b8d3e088

View File

@@ -83,7 +83,7 @@ msg_ok "Configured ERPNext"
msg_info "Setting up Production"
BENCH_VENV="/home/frappe/.local/share/uv/tools/frappe-bench"
$STD "${BENCH_VENV}/bin/python" -m ensurepip
$STD curl -fsSL https://bootstrap.pypa.io/get-pip.py | "${BENCH_VENV}/bin/python"
$STD "${BENCH_VENV}/bin/python" -m pip install ansible
$STD bash -c 'export PATH="/home/frappe/.local/bin:$PATH"; cd /opt/frappe-bench && bench setup production frappe --yes'
$STD systemctl enable --now supervisor