smoke-rpm: Avoid deprecated distutils
authorDoesnot Matter <you@example.com>
Thu, 26 May 2022 10:01:59 +0000 (12:01 +0200)
committerDoesnot Matter <you@example.com>
Thu, 26 May 2022 10:24:41 +0000 (12:24 +0200)
debian/tests/smoke-rpm

index b34816098c89730442dc55c13b55a519e69ae476..90598a289e49474ffedd49bebd5feb6da2af4177 100755 (executable)
@@ -25,7 +25,7 @@ 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())")' \
+                       -D'%python_sitelib %(%{__python3} -Ic "from sysconfig import get_path; print(get_path('"'platlib'"'))")' \
                        -D'%_arch noarch' \
                        -bb --nodeps
 fi