Define %python_sitelib for autopkgtest
authorJochen Sprickerhof <jspricke@debian.org>
Sat, 30 Jan 2021 15:18:10 +0000 (16:18 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 31 Jan 2021 12:02:40 +0000 (13:02 +0100)
The rpm package no longer defines this, instead there is python3_sitelib
in /usr/lib/rpm/macros.d/macros.python3 provided by the
python3-rpm-macros package (not in Debian).

debian/tests/smoke-rpm

index 0380479034121126ddc1ee59c9405bc95699d8b0..257bcf823f17b3c1aa3ce86972101eb5d4f30fd8 100755 (executable)
@@ -25,5 +25,6 @@ if python3 -c "import setuptools"; then
                        --git-export-dir="$GBP_TEMPDIR" \
                        -D'%__python3 /usr/bin/python3' \
                        -D'%__python /usr/bin/python3' \
+                       -D'%python_sitelib %(%{__python3} -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())")' \
                        -bb --nodeps
 fi