From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 24 Dec 2022 14:22:55 -0400
Subject: Run setup.py with the deb install layout

Select the deb_system sysconfig scheme, rather than posix_local, which
Debian defaults to. Debian's standard build tools do this automatically,
but scons calls setup.py itself, and the message wasn't getting through.

Forwarded: not-needed
---
 src/extensions/SConscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/extensions/SConscript b/src/extensions/SConscript
index 226fb8c..0a6ded7 100644
--- a/src/extensions/SConscript
+++ b/src/extensions/SConscript
@@ -44,7 +44,7 @@ def resolve_distutils_target(target, source, env):
     env['distsofile'] = env.File(tgt)
     return 0
 
-cmd_install = '$python setup.py install'
+cmd_install = '$python setup.py install --install-layout=deb'
 if 'prefix' in env:
     cmd_install += ' --prefix=$prefix'
 
