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 59cbe90..39b5804 100644
--- a/src/extensions/SConscript
+++ b/src/extensions/SConscript
@@ -47,7 +47,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'
 
