File sonata-1.6.2-nocleaning.patch of Package sonata

diff -Naur sonata-1.6.2.1/setup.py sonata-1.6.2.1-new/setup.py
--- sonata-1.6.2.1/setup.py	2009-09-22 01:24:59.000000000 +0200
+++ sonata-1.6.2.1-new/setup.py	2015-10-28 02:44:01.392715607 +0100
@@ -106,31 +106,3 @@
                     ('share/locale/zh_TW/LC_MESSAGES', ['mo/zh_TW/sonata.mo']),
                     ('share/locale/uk/LC_MESSAGES', ['mo/uk/sonata.mo'])],
         )
-
-# Cleanup (remove /build, /mo, and *.pyc files:
-print "Cleaning up..."
-try:
-    removeall("build/")
-    os.rmdir("build/")
-except:
-    pass
-try:
-    removeall("mo/")
-    os.rmdir("mo/")
-except:
-    pass
-try:
-    for f in os.listdir("."):
-        if os.path.isfile(f):
-            if os.path.splitext(os.path.basename(f))[1] == ".pyc":
-                os.remove(f)
-except:
-    pass
-try:
-    os.remove("sonata/sonata")
-except:
-    pass
-try:
-    os.remove("sonata/version.py")
-except:
-    pass
openSUSE Build Service is sponsored by