File: debianization-python.patch

package info (click to toggle)
blitz%2B%2B 1%3A1.0.2%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,580 kB
  • sloc: cpp: 57,803; python: 1,941; fortran: 1,510; f90: 852; makefile: 838; sh: 321
file content (34 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (2)
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
34
Description: debianization - Python
 Meant to address Debian specific stuff concerning Python.
Origin: vendor, Debian
Forwarded: not-needed
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