Adjust the code structure.

This commit is contained in:
Elysia
2025-11-08 13:39:25 +08:00
parent b08a545ece
commit 44c8de82c7
2 changed files with 20 additions and 18 deletions
-17
View File
@@ -1,23 +1,6 @@
# This script is meant to be sourced.
# It's not for directly running.
# Start building the missing RPM package locally.
install_RPMS() {
rpmbuildroot=${REPO_ROOT}/sdata/dist-fedora
x mkdir $rpmbuildroot/{BUILD,RPMS,SOURCES}
x cd $rpmbuildroot/SPECS
mapfile -t -d '' local_specs < <(find "$rpmbuildroot/SPECS" -maxdepth 1 -type f -name "*.spec" -print0)
for spec_file in ${local_specs[@]}; do
x rpmbuild -bb --define "_topdir $rpmbuildroot" $spec_file
done
mapfile -t -d '' local_rpms < <(find "$rpmbuildroot/RPMS" -maxdepth 2 -type f -name '*.rpm' -not -name '*debug*' -print0)
x sudo dnf install "${local_rpms[@]}" -y
cd ${REPO_ROOT}
}
showfun install_RPMS
v install_RPMS
#####################################################################################
# These python packages are installed using uv into the venv (virtual environment). Once the folder of the venv gets deleted, they are all gone cleanly. So it's considered as setups, not dependencies.
showfun install-python-packages