aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2023-07-08 16:56:50 -0400
committerTheodore Ts'o <tytso@mit.edu>2023-07-08 23:21:21 -0400
commit389d9d60c0c6d059a81cd90f2f0d43c4af561444 (patch)
tree296d869abf20571d2efd9b8cf27d58324fdb60c6
parentdf811d49ae20014a7bd951746a3feaba6eca61a9 (diff)
downloadxfstests-bld-389d9d60c0c6d059a81cd90f2f0d43c4af561444.tar.gz
test-appliance: override PEP 668 for Debian Bookworm
Debian Bookworm started shipping Python 3.11 with support for PEP 668. This disables the use of pip3 install for all but Python virtual environments. Unfortunately, doing things "right" with Python Virtual environments would involve changing how we ship the xfstests-bld specific Python scripts, which we currently ship via test-appliances/file/usr/lib/python3/dist-packages. This wouldn't be that hard to make work with gce-xfstests, but we also need to make things work for the test appliance for kvm-xfstests, which we are also trying to keep lightweight. So we'll hack around it for now. Maybe at some point we'll do something better, but this good enough for now. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--test-appliance/gce-xfstests-bld.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/test-appliance/gce-xfstests-bld.sh b/test-appliance/gce-xfstests-bld.sh
index b1d9b285..56e01616 100644
--- a/test-appliance/gce-xfstests-bld.sh
+++ b/test-appliance/gce-xfstests-bld.sh
@@ -265,8 +265,16 @@ tar -C / -xzf /root/files.tar.gz
rm -f /root/xfstests.tar.gz /root/files.tar.gz
# This installs junitparser and the sendgrid python classes
-pip3 install -r /usr/local/lib/requirements.txt
-pip3 install drgn
+#
+# Someday we may transition to using Python virtual environments
+# instead of overriding PEP 668. We currently have a number of
+# manually set up python lcasses which are installed in
+# test-appliances/files/usr/lib/python3/dist-packages which
+# we would need to deal with in some PIP install compatible
+# way, and which has to work for kvm-xfstests images as well as
+# gce-xfstests. So we'll hack around it for now...
+PIP_BREAK_SYSTEM_PACKAGES=yes pip3 install -r /usr/local/lib/requirements.txt
+PIP_BREAK_SYSTEM_PACKAGES=yes pip3 install drgn
for i in /results/runtests.log /var/log/syslog \
/var/log/messages /var/log/kern.log