[PATCH 1 of 4] setup: hgbuildmo inherits from Command

Simon Heimberg simohe at besonet.ch
Fri Nov 11 19:16:54 CST 2011


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1320174833 -3600
# Node ID 708a7cb16651fc0916bef79c0ad89ad1144900eb
# Parent  b8cd5b9a66293392cac840209fbd9f5a1cb9263b
setup: hgbuildmo inherits from Command

hgbuildmo does not need anything provided by the build class.

diff -r b8cd5b9a6629 -r 708a7cb16651 setup.py
--- a/setup.py	Son Sep 11 17:48:11 2011 +0200
+++ b/setup.py	Die 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


More information about the Mercurial-devel mailing list