updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python3-wisent / py-compile.patch
blobb4bb208a7d75371fe3698b1fcf073c8caf365fb3
1 --- src/wisent-0.6/py-compile.orig 2010-05-27 01:08:47.878401675 +0300
2 +++ src/wisent-0.6/py-compile 2010-05-27 01:34:23.561563950 +0300
3 @@ -107,34 +107,34 @@
5 files = '''$files'''
7 -print 'Byte-compiling python modules...'
8 -for file in string.split(files):
9 +print('Byte-compiling python modules...')
10 +for file in files.split():
11 $pathtrans
12 $filetrans
13 if not os.path.exists(filepath) or not (len(filepath) >= 3
14 and filepath[-3:] == '.py'):
15 - continue
16 - print file,
17 + continue
18 + print(file, end=' ')
19 sys.stdout.flush()
20 py_compile.compile(filepath, filepath + 'c', path)
21 -print" || exit $?
22 +print()" || exit $?
24 # this will fail for python < 1.5, but that doesn't matter ...
25 $PYTHON -O -c "
26 import sys, os, string, py_compile
28 files = '''$files'''
29 -print 'Byte-compiling python modules (optimized versions) ...'
30 -for file in string.split(files):
31 +print('Byte-compiling python modules (optimized versions) ...')
32 +for file in files.split():
33 $pathtrans
34 $filetrans
35 if not os.path.exists(filepath) or not (len(filepath) >= 3
36 and filepath[-3:] == '.py'):
37 - continue
38 - print file,
39 + continue
40 + print(file, end=' ')
41 sys.stdout.flush()
42 py_compile.compile(filepath, filepath + 'o', path)
43 -print" 2>/dev/null || :
44 +print()" 2>/dev/null || :
46 # Local Variables:
47 # mode: shell-script