Package: blitz++ / 1:1.0.2+ds-2

debianization-python.patch Patch series | 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
33
Description: debianization - Python
 Meant to address Debian specific stuff concerning Python.
Origin: vendor, Debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2019-11-02

--- a/blitz/generate/genstencils.py
+++ b/blitz/generate/genstencils.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/python3
 
 # Generates stencil code. This replaces the macros in stencil-et.h,
 # which make it impossible to debug the generated code.
--- a/blitz/generate/makeloops.py
+++ b/blitz/generate/makeloops.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 # python version of the makeloops.cpp that generates the benchmark
 # loops.
--- a/blitz/generate/Makefile.am
+++ b/blitz/generate/Makefile.am
@@ -9,7 +9,7 @@
 EXTRA_PROGRAMS = 
 
 $(top_srcdir)/blitz/array/stencil-classes.cc: genstencils.py
-	python $< $@
+	python3 $< $@
 
 generate-headers: $(top_srcdir)/blitz/array/stencil-classes.cc