From 0387195fa8b4f461c0a7d015f7f1355f198524df Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 7 Aug 2024 11:31:43 +0200 Subject: [PATCH] only main and root packages --- spcd.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/spcd.sh b/spcd.sh index 920ff5e..68ed45e 100644 --- a/spcd.sh +++ b/spcd.sh @@ -709,18 +709,21 @@ index-url = ${SPCD_URL_PYTHON} spcd_ip__venv="/opt/venv" "${SPCD_PYTHON_ALIAS}" -m "venv" "${spcd_ip__venv}" spcd_split - rsync --archive --verbose \ - "${SPCD_PYTHON_PACKAGES}" \ - "${spcd_ip__venv}/lib/${SPCD_PYTHON_COMMAND}/site-packages" + for spcd_ip__name in "spcd" "rwx"; do + rsync --archive --verbose \ + "${SPCD_PYTHON_PACKAGES}/${spcd_ip__name}/" \ + "\ +${spcd_ip__venv}/lib/${SPCD_PYTHON_COMMAND}/site-packages/${spcd_ip__name}/" + done spcd_split . "${spcd_ip__venv}/bin/activate" spcd_split pip install --upgrade "pip" spcd_split pip install \ - "pelican" \ - "ruff" \ - "sphinx" + "pelican" \ + "ruff" \ + "sphinx" } spcd_install_python_modules() { @@ -755,7 +758,7 @@ ${SPCD_PYTHON_PACKAGES}" if [ -f "${spcd_ipm__script}" ]; then spcd_split spcd_ipm__check="${spcd_ipm__root}/check.sha512sum" - sha512sum "${spcd_ipm__script}" > "${spcd_ipm__check}" + sha512sum "${spcd_ipm__script}" >"${spcd_ipm__check}" printf "%s" "${SPCD}" >"${spcd_ipm__script}" ls -l "${spcd_ipm__script}" dos2unix "${spcd_ipm__script}"