20846: Remove unused Python packaging constants
authorBrett Smith <brett.smith@curii.com>
Sat, 6 Jan 2024 16:26:29 +0000 (11:26 -0500)
committerBrett Smith <brett.smith@curii.com>
Sat, 6 Jan 2024 16:26:29 +0000 (11:26 -0500)
I believe these are remnants from when we packaged our modules for
system use, outside a virtualenv.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

build/run-build-packages.sh

index 508e89194f3e4dd4f850ccc34cce7ab1a44c7804..e1363955a2e687f44734c2bb2bb0083210285b00 100755 (executable)
@@ -106,11 +106,9 @@ if [[ "$DEBUG" != 0 ]]; then
     DASHQ_UNLESS_DEBUG=
 fi
 
-declare -a PYTHON3_BACKPORTS
 
 PYTHON3_EXECUTABLE=python3
 PYTHON3_PKG_PREFIX=python3
-PYTHON3_PREFIX=/usr
 case "$TARGET" in
     centos*|rocky*)
         FORMAT=rpm
@@ -126,11 +124,9 @@ esac
 : "${PYTHON3_VERSION:=$("$PYTHON3_EXECUTABLE" -c 'import sys; print("{v.major}.{v.minor}".format(v=sys.version_info))')}"
 case "$FORMAT" in
     deb)
-        : "${PYTHON3_INSTALL_LIB:=lib/python$PYTHON3_VERSION/dist-packages}"
         : "${PYTHON3_PACKAGE:=python$PYTHON3_VERSION}"
         ;;
     rpm)
-        : "${PYTHON3_INSTALL_LIB:=lib/python$PYTHON3_VERSION/site-packages}"
         : "${PYTHON3_PACKAGE:=$(rpm -qf "$(command -v "python$PYTHON3_VERSION")" --queryformat '%{NAME}\n')}"
         ;;
 esac