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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
diff --ignore-space-change -u -r manatee-open-2.151.5/api/addwcattr manatee-open-2.151.5-patched/api/addwcattr
--- manatee-open-2.151.5/api/addwcattr 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/addwcattr 2017-08-09 21:30:27.401720314 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python2
# Copyright 2007-2015 Pavel Rychly, Milos Jakubicek
"""
diff --ignore-space-change -u -r manatee-open-2.151.5/api/compilecorp manatee-open-2.151.5-patched/api/compilecorp
--- manatee-open-2.151.5/api/compilecorp 2017-07-12 17:36:48.000000000 +0200
+++ manatee-open-2.151.5-patched/api/compilecorp 2017-08-09 21:29:42.537082322 +0200
@@ -300,7 +300,7 @@
# check whether the corpus exists
corpinfo "$CORPUS" >/dev/null
- MANATEE_VERSION=`python -c 'import manatee; print manatee.version()'`
+ MANATEE_VERSION=`python2 -c 'import manatee; print manatee.version()'`
echo "Manatee version: $MANATEE_VERSION"
echo "Reading corpus configuration..."
diff --ignore-space-change -u -r manatee-open-2.151.5/api/concinfo manatee-open-2.151.5-patched/api/concinfo
--- manatee-open-2.151.5/api/concinfo 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/concinfo 2017-08-09 21:29:51.190376025 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
# Copyright (c) 2006-2009 Pavel Rychly
"""
diff --ignore-space-change -u -r manatee-open-2.151.5/api/corpcheck manatee-open-2.151.5-patched/api/corpcheck
--- manatee-open-2.151.5/api/corpcheck 2017-07-12 17:36:28.000000000 +0200
+++ manatee-open-2.151.5-patched/api/corpcheck 2017-08-09 21:30:20.918174093 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import sys, manatee, subprocess, re, os, urllib2
diff --ignore-space-change -u -r manatee-open-2.151.5/api/corpquery manatee-open-2.151.5-patched/api/corpquery
--- manatee-open-2.151.5/api/corpquery 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/corpquery 2017-08-09 21:29:53.943825819 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2007-2016 Pavel Rychly, Milos Jakubicek
import manatee
diff --ignore-space-change -u -r manatee-open-2.151.5/api/decodevert manatee-open-2.151.5-patched/api/decodevert
--- manatee-open-2.151.5/api/decodevert 2017-07-12 17:36:28.000000000 +0200
+++ manatee-open-2.151.5-patched/api/decodevert 2017-08-09 21:30:40.588787186 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2014 Pavel Rychly
"""Decode a corpus -- creates a vertical file from encoded data
diff --ignore-space-change -u -r manatee-open-2.151.5/api/devirt manatee-open-2.151.5-patched/api/devirt
--- manatee-open-2.151.5/api/devirt 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/devirt 2017-08-09 21:29:47.180386615 +0200
@@ -16,7 +16,7 @@
STRUCTLIST=`corpinfo -g STRUCTLIST $CORPUS`
STRUCTATTRLIST=`corpinfo -g STRUCTATTRLIST $CORPUS`
CPATH=`corpinfo -p $CORPUS`
-CONFFILE=`python -c "import manatee; c=manatee.Corpus(\"$CORPUS\"); print c.get_confpath();"`
+CONFFILE=`python2 -c "import manatee; c=manatee.Corpus(\"$CORPUS\"); print c.get_confpath();"`
[ -d "$OUTDIR" ] || mkdir -p "$OUTDIR"
diff --ignore-space-change -u -r manatee-open-2.151.5/api/dumpalign manatee-open-2.151.5-patched/api/dumpalign
--- manatee-open-2.151.5/api/dumpalign 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/dumpalign 2017-08-09 21:30:24.178282529 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2014-2016 Milos Jakubicek
import sys
diff --ignore-space-change -u -r manatee-open-2.151.5/api/freqs manatee-open-2.151.5-patched/api/freqs
--- manatee-open-2.151.5/api/freqs 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/freqs 2017-08-09 21:29:32.780476633 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2
# Copyright (c) 2010-2015 Pavel Rychly
import manatee, os, sys
diff --ignore-space-change -u -r manatee-open-2.151.5/api/lslexarf manatee-open-2.151.5-patched/api/lslexarf
--- manatee-open-2.151.5/api/lslexarf 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/lslexarf 2017-08-09 21:30:37.102018825 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2007-2015 Pavel Rychly
import manatee
diff --ignore-space-change -u -r manatee-open-2.151.5/api/lsslex manatee-open-2.151.5-patched/api/lsslex
--- manatee-open-2.151.5/api/lsslex 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/lsslex 2017-08-09 21:29:36.067122765 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2007-2013 Pavel Rychly
import manatee
diff --ignore-space-change -u -r manatee-open-2.151.5/api/mkstats manatee-open-2.151.5-patched/api/mkstats
--- manatee-open-2.151.5/api/mkstats 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/mkstats 2017-08-09 21:29:14.437257758 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python2
# Copyright (c) 2008-2013 Pavel Rychly, Milos Jakubicek
import sys
diff --ignore-space-change -u -r manatee-open-2.151.5/api/mksubc manatee-open-2.151.5-patched/api/mksubc
--- manatee-open-2.151.5/api/mksubc 2017-07-12 17:36:28.000000000 +0200
+++ manatee-open-2.151.5-patched/api/mksubc 2017-08-09 21:30:46.795627983 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python2
# Copyright (c) 2008-2015 Pavel Rychly, Milos Jakubicek, Vit Baisa
import sys
diff --ignore-space-change -u -r manatee-open-2.151.5/api/parencodevert manatee-open-2.151.5-patched/api/parencodevert
--- manatee-open-2.151.5/api/parencodevert 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/parencodevert 2017-08-09 21:30:16.934704338 +0200
@@ -58,8 +58,8 @@
fi
DOCSTRUCTURE=`corpinfo -g DOCSTRUCTURE $CORPUS`
PATH_=`corpinfo -p $CORPUS`
-CONFFILE=`python -c "import manatee; c=manatee.Corpus(\"$CORPUS\"); print c.get_confpath();"`
-SCALE=`python -c "import math; print int(math.ceil(math.log10($JOBS))) or 1"`
+CONFFILE=`python2 -c "import manatee; c=manatee.Corpus(\"$CORPUS\"); print c.get_confpath();"`
+SCALE=`python2 -c "import math; print int(math.ceil(math.log10($JOBS))) or 1"`
ZEROS=`printf '0%.0s' {1..$SCALE}`
echo "Preparing vertical files..."
diff --ignore-space-change -u -r manatee-open-2.151.5/api/par2tokens manatee-open-2.151.5-patched/api/par2tokens
--- manatee-open-2.151.5/api/par2tokens 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/par2tokens 2017-08-09 21:30:33.488577000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2015-2016 Milos Jakubicek
import sys, array
diff --ignore-space-change -u -r manatee-open-2.151.5/api/tokens2dict manatee-open-2.151.5-patched/api/tokens2dict
--- manatee-open-2.151.5/api/tokens2dict 2017-04-03 11:46:44.000000000 +0200
+++ manatee-open-2.151.5-patched/api/tokens2dict 2017-08-09 21:30:43.365532831 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2015 Vojtech Kovar, Milos Jakubicek
import sys, array, manatee
diff --ignore-space-change -u -r manatee-open-2.151.5/config/py-compile manatee-open-2.151.5-patched/config/py-compile
--- manatee-open-2.151.5/config/py-compile 2017-04-03 11:47:58.000000000 +0200
+++ manatee-open-2.151.5-patched/config/py-compile 2017-08-09 21:27:10.284683067 +0200
@@ -28,7 +28,7 @@
# <automake-patches@gnu.org>.
if [ -z "$PYTHON" ]; then
- PYTHON=python
+ PYTHON=python2
fi
me=py-compile
|