File python-rpm-macros-deb.diff of Package python-rpm-macros
Index: python-rpm-macros-20240618.c146b29/flavor.in
===================================================================
--- python-rpm-macros-20240618.c146b29.orig/flavor.in
+++ python-rpm-macros-20240618.c146b29/flavor.in
@@ -103,6 +103,7 @@ if [ $havereq -eq 0 ]; then \
myargs="$myargs $(echo $(basename ${w}) | sed -E 's/([^-]+)-([^-]+)-.+\\.whl/\\1==\\2/')" \
done \
fi \
+%{?debian:export DEB_PYTHON_INSTALL_LAYOUT="deb"} \
%__#FLAVOR# -mpip install %{pyproject_install_args} $myargs \
%#FLAVOR#_compile \
%#FLAVOR#_fix_shebang