From: Jochen Sprickerhof Date: Sat, 30 Jan 2021 15:18:10 +0000 (+0100) Subject: Define %python_sitelib for autopkgtest X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1586313f17c76b593c7c0f7aa08ddde880e53ebe;p=tools%2Fgit-buildpackage.git Define %python_sitelib for autopkgtest 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). --- diff --git a/debian/tests/smoke-rpm b/debian/tests/smoke-rpm index 03804790..257bcf82 100755 --- a/debian/tests/smoke-rpm +++ b/debian/tests/smoke-rpm @@ -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