From 0edb30309184564738ccf61c93862ba185289896 Mon Sep 17 00:00:00 2001 From: UmakanthKaspa Date: Wed, 15 Apr 2026 23:07:35 +0530 Subject: [PATCH] fix: cap setuptools below v82 to retain pkg_resources --- images/custom/Containerfile | 3 ++- images/layered/Containerfile | 3 ++- images/production/Containerfile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/images/custom/Containerfile b/images/custom/Containerfile index a8298b52..a930b95b 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -137,7 +137,8 @@ RUN export APP_INSTALL_ARGS="" && \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ echo "{}" > sites/common_site_config.json && \ - find apps -mindepth 1 -path "*/.git" | xargs rm -fr + find apps -mindepth 1 -path "*/.git" | xargs rm -fr && \ + bench pip install "setuptools>=71.0.0,<82.0.0" FROM base AS backend diff --git a/images/layered/Containerfile b/images/layered/Containerfile index 142c487a..9e56a8af 100644 --- a/images/layered/Containerfile +++ b/images/layered/Containerfile @@ -28,7 +28,8 @@ RUN export APP_INSTALL_ARGS="" && \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ echo "{}" > sites/common_site_config.json && \ - find apps -mindepth 1 -path "*/.git" | xargs rm -fr + find apps -mindepth 1 -path "*/.git" | xargs rm -fr && \ + bench pip install "setuptools>=71.0.0,<82.0.0" FROM frappe/base:${FRAPPE_BRANCH} AS backend diff --git a/images/production/Containerfile b/images/production/Containerfile index 17f1573d..9e46e390 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -123,7 +123,8 @@ RUN bench init \ cd /home/frappe/frappe-bench && \ bench get-app --branch=${ERPNEXT_BRANCH} --resolve-deps erpnext ${ERPNEXT_REPO} && \ echo "{}" > sites/common_site_config.json && \ - find apps -mindepth 1 -path "*/.git" | xargs rm -fr + find apps -mindepth 1 -path "*/.git" | xargs rm -fr && \ + bench pip install "setuptools>=71.0.0,<82.0.0" FROM base AS erpnext