summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-04 13:45:42 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-04 13:45:42 +0100
commit6d2e2e9d8eea6144da7b7d8ed0758e9fa49ab554 (patch)
tree5607811b4c3b13910a02dae98842eca6d0ff584b /setup.py
parent0873394260e68f515f0c8f11e644dd67ae3949f0 (diff)
Reworked CleanGenerated, more verbose now
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py16
1 files 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):
115 pass 115 pass
116 116
117 def run(self): 117 def run(self):
118 for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "edje/edit", 118 for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "emotion",
119 "emotion", "elementary", "ethumb", "utils"): 119 "elementary", "ethumb", "dbus_mainloop", "utils"):
120 lib_path = os.path.join(script_path, "efl", lib) 120 lib_path = os.path.join(script_path, "efl", lib)
121 for root, dirs, files in os.walk(lib_path): 121 for root, dirs, files in os.walk(lib_path):
122 for f in files: 122 for f in files:
123 if f.endswith(".c") or f.endswith(".html"): 123 if f.endswith((".c", ".html")) and f != "e_dbus.c":
124 os.remove(os.path.join(root, f)) 124 self.remove(os.path.join(root, f))
125 dbus_ml_path = os.path.join(script_path, "efl", "dbus_mainloop", 125
126 "dbus_mainloop.c") 126 def remove(self, fullpath):
127 if os.path.exists(dbus_ml_path): 127 print("removing %s" % fullpath.replace(script_path, "").lstrip('/'))
128 os.remove(dbus_ml_path) 128 os.remove(fullpath)
129 129
130 130
131# === use cython or pre-generated C files === 131# === use cython or pre-generated C files ===