File: wscript_py3.patch

package info (click to toggle)
aubio 0.4.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,720 kB
  • sloc: python: 20,447; ansic: 20,127; makefile: 348; sh: 232
file content (32 lines) | stat: -rw-r--r-- 974 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
27
28
29
30
31
32
From: Paul Brossier <piem@debian.org>
Date: Tue, 7 Oct 2025 09:01:31 +0200
Subject: use current interpreter to create test sound files

Forwarded: not-needed
Last-Update: 2020-01-02

This patch ensures the current interpreter is used to run create_tests_source.
---
 tests/wscript_build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/wscript_build b/tests/wscript_build
index c99a051..c0325ea 100644
--- a/tests/wscript_build
+++ b/tests/wscript_build
@@ -1,5 +1,6 @@
 # vim:set syntax=python:
 
+import sys
 import os.path
 
 uselib = ['aubio']
@@ -13,7 +14,7 @@ test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
 test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')
 
 b = bld(name='create_tests_source',
-    rule='python ${SRC} ${TGT}',
+    rule=sys.executable + ' ${SRC} ${TGT}',
     source='create_tests_source.py',
     target=test_sound_target)
 # use post() to create the task, keep a reference to it