File: python2.diff

package info (click to toggle)
libgnatcoll-bindings 25.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,412 kB
  • sloc: ada: 18,696; python: 1,597; ansic: 1,422; cpp: 581; makefile: 147; sh: 114
file content (123 lines) | stat: -rw-r--r-- 2,795 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Description: Depend on explicit python3.
 Ubuntu does not contain an unversioned 'python' anymore.
Forwarded: https://github.com/AdaCore/gnatcoll-bindings/pull/11
Author: Matthias Klose <doko@debian.org>

--- a/gen_gps_help.py
+++ b/gen_gps_help.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import os
 import os.path
--- a/gmp/setup.py
+++ b/gmp/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/iconv/setup.py
+++ b/iconv/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/lzma/setup.py
+++ b/lzma/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/omp/setup.py
+++ b/omp/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/python/gnatcoll-scripts-python.adb
+++ b/python/gnatcoll-scripts-python.adb
@@ -532,7 +532,7 @@
    procedure Register_Python_Scripting
      (Repo          : access Scripts.Scripts_Repository_Record'Class;
       Module        : String;
-      Program_Name  : String := "python";
+      Program_Name  : String := "python3";
       Python_Home   : String := "")
    is
       Script  : Python_Scripting;
--- a/python/gnatcoll-scripts-python.ads
+++ b/python/gnatcoll-scripts-python.ads
@@ -34,7 +34,7 @@
    procedure Register_Python_Scripting
      (Repo         : access Scripts.Scripts_Repository_Record'Class;
       Module       : String;
-      Program_Name : String := "python";
+      Program_Name : String := "python3";
       Python_Home  : String := "");
    --  All commands and classes will be added in the specified module.
    --
--- a/python/setup.py
+++ b/python/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import sys
 import re
--- a/python3/setup.py
+++ b/python3/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import sys
 import re
--- a/readline/setup.py
+++ b/readline/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/setup_support.py
+++ b/setup_support.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 from subprocess import check_output, check_call, CalledProcessError
 import argparse
 import json
--- a/syslog/setup.py
+++ b/syslog/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys
--- a/testsuite/testsuite.py
+++ b/testsuite/testsuite.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import re
 import os
--- a/zlib/setup.py
+++ b/zlib/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 import logging
 import os
 import sys