Lines 1-5
Link Here
|
1 |
--- setup.py.orig 2015-03-05 08:00:18 UTC |
1 |
--- setup.py.orig 2020-09-27 23:28:43 UTC |
2 |
+++ setup.py |
2 |
+++ setup.py |
|
|
3 |
@@ -11,20 +11,20 @@ def staticify_chirp_module(): |
4 |
import chirp |
5 |
|
6 |
with file("chirp/__init__.py", "w") as init: |
7 |
- print >>init, "CHIRP_VERSION = \"%s\"" % CHIRP_VERSION |
8 |
- print >>init, "__all__ = %s\n" % str(chirp.__all__) |
9 |
+ print("CHIRP_VERSION = \"%s\"" % CHIRP_VERSION, file=init) |
10 |
+ print("__all__ = %s\n" % str(chirp.__all__), file=init) |
11 |
|
12 |
- print "Set chirp/__init__.py::__all__ = %s" % str(chirp.__all__) |
13 |
+ print("Set chirp/__init__.py::__all__ = %s" % str(chirp.__all__)) |
14 |
|
15 |
|
16 |
def staticify_drivers_module(): |
17 |
import chirp.drivers |
18 |
|
19 |
with file("chirp/drivers/__init__.py", "w") as init: |
20 |
- print >>init, "__all__ = %s\n" % str(chirp.drivers.__all__) |
21 |
+ print("__all__ = %s\n" % str(chirp.drivers.__all__), file=init) |
22 |
|
23 |
- print "Set chirp/drivers/__init__.py::__all__ = %s" % str( |
24 |
- chirp.drivers.__all__) |
25 |
+ print("Set chirp/drivers/__init__.py::__all__ = %s" % str( |
26 |
+ chirp.drivers.__all__)) |
27 |
|
28 |
|
29 |
def win32_build(): |
3 |
@@ -109,7 +109,7 @@ def default_build(): |
30 |
@@ -109,7 +109,7 @@ def default_build(): |
4 |
|
31 |
|
5 |
desktop_files = glob("share/*.desktop") |
32 |
desktop_files = glob("share/*.desktop") |
Lines 9-17
Link Here
|
9 |
_locale_files = glob("locale/*/LC_MESSAGES/CHIRP.mo") |
36 |
_locale_files = glob("locale/*/LC_MESSAGES/CHIRP.mo") |
10 |
stock_configs = glob("stock_configs/*") |
37 |
stock_configs = glob("stock_configs/*") |
11 |
|
38 |
|
|
|
39 |
@@ -117,7 +117,7 @@ def default_build(): |
40 |
for f in _locale_files: |
41 |
locale_files.append(("share/chirp/%s" % os.path.dirname(f), [f])) |
42 |
|
43 |
- print "LOC: %s" % str(locale_files) |
44 |
+ print("LOC: %s" % str(locale_files)) |
45 |
|
46 |
xsd_files = glob("chirp*.xsd") |
47 |
|
12 |
@@ -127,11 +127,11 @@ def default_build(): |
48 |
@@ -127,11 +127,11 @@ def default_build(): |
13 |
version=CHIRP_VERSION, |
49 |
version=CHIRP_VERSION, |
14 |
scripts=["chirpw"], |
50 |
scripts=["chirpw", "rpttool"], |
15 |
data_files=[('share/applications', desktop_files), |
51 |
data_files=[('share/applications', desktop_files), |
16 |
- ('share/chirp/images', image_files), |
52 |
- ('share/chirp/images', image_files), |
17 |
+# ('share/chirp/images', image_files), |
53 |
+# ('share/chirp/images', image_files), |
Lines 24-26
Link Here
|
24 |
('share/chirp/stock_configs', stock_configs), |
60 |
('share/chirp/stock_configs', stock_configs), |
25 |
] + locale_files) |
61 |
] + locale_files) |
26 |
|
62 |
|
|
|
63 |
@@ -146,7 +146,7 @@ def nuke_manifest(*files): |
64 |
|
65 |
f = file("MANIFEST.in", "w") |
66 |
for fn in files: |
67 |
- print >>f, fn |
68 |
+ print(fn, file=f) |
69 |
f.close() |
70 |
|
71 |
|