File: install-layout-deb.patch

package info (click to toggle)
pyobjcryst 2.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,280 kB
  • sloc: cpp: 5,737; python: 3,372; makefile: 17; sh: 6
file content (26 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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'