setup: hgbuildmo inherits from Command
authorSimon Heimberg <simohe@besonet.ch>
Tue, 01 Nov 2011 20:13:53 +0100
changeset 15493 8504699d1aa6
parent 15492 36f076d03b34
child 15494 7a7a1c594daf
setup: hgbuildmo inherits from Command hgbuildmo does not need anything provided by the build class.
setup.py
--- a/setup.py	Sat Nov 12 02:07:55 2011 +0100
+++ b/setup.py	Tue Nov 01 20:13:53 2011 +0100
@@ -192,7 +192,7 @@
     sub_commands = [('build_mo', None),
                    ] + build.sub_commands
 
-class hgbuildmo(build):
+class hgbuildmo(Command):
 
     description = "build translations (.mo files)"
 
@@ -222,6 +222,12 @@
             self.mkpath(join('mercurial', modir))
             self.make_file([pofile], mobuildfile, spawn, (cmd,))
 
+    def initialize_options(self):
+        pass
+
+    def finalize_options(self):
+        pass
+
 
 class hgdist(Distribution):
     pure = 0