fix: cap setuptools below v82 to retain pkg_resources

This commit is contained in:
UmakanthKaspa 2026-04-15 23:07:35 +05:30
parent 616ffd4177
commit 0edb303091
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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