diff --git a/Dockerfile.rocky8 b/Dockerfile.rocky8 index 4a925417..6ae8f6d7 100755 --- a/Dockerfile.rocky8 +++ b/Dockerfile.rocky8 @@ -1704,7 +1704,8 @@ RUN if [ "${ENABLE_QUOTA}" = "True" ] \ && cd ${MIG_ROOT}/mig/src/pylustrequota/lustre-release/lustre/utils \ && make liblustreapi.la \ && cd ${MIG_ROOT}/mig/src/pylustrequota \ - && python3 setup.py install; \ + && python3 -m pip install --use-pep517 . \ + && rm -rf ${MIG_ROOT}/mig/src/pylustrequota/lustre-release; \ fi; \ fi; #------------------------- next stage -----------------------------# diff --git a/Dockerfile.rocky9 b/Dockerfile.rocky9 index 33641931..8df34b8b 100755 --- a/Dockerfile.rocky9 +++ b/Dockerfile.rocky9 @@ -1591,7 +1591,8 @@ RUN if [ "${ENABLE_QUOTA}" = "True" ] \ && cd ${MIG_ROOT}/mig/src/pylustrequota/lustre-release/lustre/utils \ && make liblustreapi.la \ && cd ${MIG_ROOT}/mig/src/pylustrequota \ - && python3 setup.py install; \ + && python3 -m pip install --use-pep517 . \ + && rm -rf ${MIG_ROOT}/mig/src/pylustrequota/lustre-release; \ fi; \ fi; #------------------------- next stage -----------------------------#