davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=6d2e2e9d8eea6144da7b7d8ed0758e9fa49ab554

commit 6d2e2e9d8eea6144da7b7d8ed0758e9fa49ab554
Author: Dave Andreoli <[email protected]>
Date:   Sun Jan 4 13:45:42 2015 +0100

    Reworked CleanGenerated, more verbose now
---
 setup.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/setup.py b/setup.py
index 07ac4c8..81b7263 100755
--- a/setup.py
+++ b/setup.py
@@ -115,17 +115,17 @@ class CleanGenerated(Command):
         pass
 
     def run(self):
-        for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "edje/edit",
-                    "emotion", "elementary", "ethumb", "utils"):
+        for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "emotion",
+                    "elementary", "ethumb", "dbus_mainloop", "utils"):
             lib_path = os.path.join(script_path, "efl", lib)
             for root, dirs, files in os.walk(lib_path):
                 for f in files:
-                    if f.endswith(".c") or f.endswith(".html"):
-                        os.remove(os.path.join(root, f))
-        dbus_ml_path = os.path.join(script_path, "efl", "dbus_mainloop",
-                                    "dbus_mainloop.c")
-        if os.path.exists(dbus_ml_path):
-            os.remove(dbus_ml_path)
+                    if f.endswith((".c", ".html")) and f != "e_dbus.c":
+                        self.remove(os.path.join(root, f))
+
+    def remove(self, fullpath):
+        print("removing %s" % fullpath.replace(script_path, "").lstrip('/'))
+        os.remove(fullpath)
 
 
 # === use cython or pre-generated C files ===

-- 


Reply via email to