summaryrefslogtreecommitdiff
blob: 8d43447027dc5f09929586f9f25d8c35ead7a000 (plain)
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
diff --git a/setup.py b/setup.py
index 0177ce7..7aaa681 100644
--- a/setup.py
+++ b/setup.py
@@ -160,27 +160,8 @@ def build_man(build_cmd):
             subst_vars = (('@VERSION@', VERSION), )
             substitute_variables(filename, newfile, subst_vars)
 
-            import gzip
-            man_file_gz = os.path.join(newdir, 'gramps.1.gz')
-            if os.path.exists(man_file_gz):
-                if newer(filename, man_file_gz):
-                    os.remove(man_file_gz)
-                else:
-                    filename = False
-                    os.remove(newfile)
-
-            if filename:
-                #Binary io, so open is OK
-                with open(newfile, 'rb') as f_in,\
-                        gzip.open(man_file_gz, 'wb') as f_out:
-                    f_out.writelines(f_in)
-                    log.info('Compiling %s >> %s', filename, man_file_gz)
-
-                os.remove(newfile)
-                filename = False
-
             lang = man_dir[8:]
-            src = build_cmd.build_base  + '/data/man/' + lang  + '/gramps.1.gz'
+            src = build_cmd.build_base  + '/data/man/' + lang  + '/gramps.1'
             target = 'share/man/' + lang + '/man1'
             data_files.append((target, [src]))