summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-10-16 22:35:44 +0200
committerdavemds <dave@gurumeditation.it>2013-10-16 22:35:44 +0200
commitf2b7c24f7acf8f01d02fe06603ba81b1986daf57 (patch)
tree449a754b3b6c8ef0e5bacd1e085899f424cef1a9
parent3b95ccd0691dddb1a1cedbf35cbbd45a67056a3b (diff)
Python-EFL: some little and stupid cleanup to setup.py and some additions to MANIFEST.in
* Fix clean_generated_files to also include utils * change format() usage to simple str concat...just to hurt kuuko :) * remove the usless check for __main__
-rw-r--r--MANIFEST.in3
-rwxr-xr-xsetup.py226
2 files changed, 112 insertions, 117 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 8e521a1..8b79c1b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1 +1,4 @@
1include README INSTALL COPYING AUTHORS
1recursive-include efl *.c *.h 2recursive-include efl *.c *.h
3recursive-include examples *
4recursive-include doc *
diff --git a/setup.py b/setup.py
index 9e0a17b..fdc0700 100755
--- a/setup.py
+++ b/setup.py
@@ -8,12 +8,6 @@ from distutils.extension import Extension
8from distutils.version import StrictVersion 8from distutils.version import StrictVersion
9 9
10 10
11# Cython
12#
13# TODO: Move this inside a conditional so that pre-generated .c files
14# can be used.
15#
16
17# Sphinx 11# Sphinx
18try: 12try:
19 from sphinx.setup_command import BuildDoc 13 from sphinx.setup_command import BuildDoc
@@ -43,46 +37,47 @@ def pkg_config(name, require, min_vers=None):
43 raise SystemExit("Failed to match version. Found: " + ver + " Needed: " + min_vers) 37 raise SystemExit("Failed to match version. Found: " + ver + " Needed: " + min_vers)
44 38
45 39
46modules = [] 40# use cython or pre-generated c files
47if os.path.exists(os.path.join(os.getcwd(), "efl", "eo", "efl.eo.pyx")): 41if os.path.exists(os.path.join(os.getcwd(), "efl", "eo", "efl.eo.pyx")):
48 module_suffix = "pyx" 42 module_suffix = ".pyx"
49 min_ver = "0.17.0" 43 min_ver = "0.17.0"
50 try: 44 try:
51 from Cython.Distutils import build_ext 45 from Cython.Distutils import build_ext
52 from Cython.Build import cythonize 46 from Cython.Build import cythonize
53 import Cython.Compiler.Options 47 import Cython.Compiler.Options
54 48
55 cur_ver = Cython.__version__ 49 assert StrictVersion(Cython.__version__) >= StrictVersion(min_ver)
56 assert StrictVersion(cur_ver) >= StrictVersion(min_ver)
57 #print("Found Cython: %s" % cur_ver)
58
59 Cython.Compiler.Options.fast_fail = True # stop compilation on first error 50 Cython.Compiler.Options.fast_fail = True # stop compilation on first error
60 Cython.Compiler.Options.annotate = False # HTML file annotation generation 51 Cython.Compiler.Options.annotate = False # HTML file annotation generation
61 52
62 except (ImportError, AssertionError): 53 except (ImportError, AssertionError):
63 raise SystemExit("Requires Cython >= %s (http://cython.org/)" % min_ver) 54 raise SystemExit("Requires Cython >= %s (http://cython.org/)" % min_ver)
64else: 55else:
65 module_suffix = "c" 56 module_suffix = ".c"
66 from distutils.command.build_ext import build_ext 57 from distutils.command.build_ext import build_ext
67 def cythonize(modules, *args, **kwargs): 58 def cythonize(modules, *args, **kwargs):
68 return modules 59 return modules
69 60
61
70class CleanGenerated(Command): 62class CleanGenerated(Command):
71 description = "Clean C and html files generated by Cython" 63 description = "Clean C and html files generated by Cython"
72 user_options = [] 64 user_options = []
73 def initialize_options(self): pass 65 def initialize_options(self): pass
74 def finalize_options(self): pass 66 def finalize_options(self): pass
75 def run(self): 67 def run(self):
76 for lib in "eo", "evas", "ecore", "edje", "edje/edit", "emotion", "elementary": 68 for lib in "eo", "evas", "ecore", "edje", "edje/edit", "emotion", "elementary", "utils":
77 subprocess.call("rm -rfv efl/{0}/*.c efl/{0}/*.html".format(lib), shell=True) 69 subprocess.call("rm -rfv efl/{0}/*.c efl/{0}/*.html".format(lib), shell=True)
78 subprocess.call("rm -rfv efl/dbus_mainloop/dbus_mainloop.c efl/dbus_mainloop/dbus_mainloop.html", shell=True) 70 subprocess.call("rm -rfv efl/dbus_mainloop/dbus_mainloop.c efl/dbus_mainloop/dbus_mainloop.html", shell=True)
79 71
72
73modules = []
74
80if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): 75if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
81 76
82 # Eo 77 # Eo
83 eo_cflags, eo_libs = pkg_config('Eo', 'eo', "1.7.99") 78 eo_cflags, eo_libs = pkg_config('Eo', 'eo', "1.7.99")
84 eina_cflags, eina_libs = pkg_config('Eina', 'eina', "1.7.99") 79 eina_cflags, eina_libs = pkg_config('Eina', 'eina', "1.7.99")
85 eo_ext = Extension("eo", ["efl/eo/efl.eo.{0}".format(module_suffix)], 80 eo_ext = Extension("eo", ["efl/eo/efl.eo"+module_suffix],
86 define_macros = [('EFL_BETA_API_SUPPORT', None)], 81 define_macros = [('EFL_BETA_API_SUPPORT', None)],
87 include_dirs = ['include/'], 82 include_dirs = ['include/'],
88 extra_compile_args = eo_cflags, 83 extra_compile_args = eo_cflags,
@@ -91,8 +86,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
91 86
92 # Utilities 87 # Utilities
93 utils_ext = [ 88 utils_ext = [
94 Extension("utils.deprecated", ["efl/utils/deprecated.{0}".format(module_suffix)]), 89 Extension("utils.deprecated", ["efl/utils/deprecated"+module_suffix]),
95 Extension("utils.conversions", ["efl/utils/conversions.{0}".format(module_suffix)], 90 Extension("utils.conversions", ["efl/utils/conversions"+module_suffix],
96 include_dirs = ['include/'], 91 include_dirs = ['include/'],
97 extra_compile_args = eo_cflags, 92 extra_compile_args = eo_cflags,
98 extra_link_args = eo_libs + eina_libs) 93 extra_link_args = eo_libs + eina_libs)
@@ -101,7 +96,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
101 96
102 # Evas 97 # Evas
103 evas_cflags, evas_libs = pkg_config('Evas', 'evas', "1.7.99") 98 evas_cflags, evas_libs = pkg_config('Evas', 'evas', "1.7.99")
104 evas_ext = Extension("evas", ["efl/evas/efl.evas.{0}".format(module_suffix)], 99 evas_ext = Extension("evas", ["efl/evas/efl.evas"+module_suffix],
105 include_dirs = ['include/'], 100 include_dirs = ['include/'],
106 extra_compile_args = evas_cflags, 101 extra_compile_args = evas_cflags,
107 extra_link_args = evas_libs + eina_libs) 102 extra_link_args = evas_libs + eina_libs)
@@ -110,7 +105,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
110 # Ecore 105 # Ecore
111 ecore_cflags, ecore_libs = pkg_config('Ecore', 'ecore', "1.7.99") 106 ecore_cflags, ecore_libs = pkg_config('Ecore', 'ecore', "1.7.99")
112 efile_cflags, efile_libs = pkg_config('EcoreFile', 'ecore-file', "1.7.99") 107 efile_cflags, efile_libs = pkg_config('EcoreFile', 'ecore-file', "1.7.99")
113 ecore_ext = Extension("ecore", ["efl/ecore/efl.ecore.{0}".format(module_suffix)], 108 ecore_ext = Extension("ecore", ["efl/ecore/efl.ecore"+module_suffix],
114 include_dirs = ['include/'], 109 include_dirs = ['include/'],
115 extra_compile_args = ecore_cflags + efile_cflags, 110 extra_compile_args = ecore_cflags + efile_cflags,
116 extra_link_args = ecore_libs + efile_libs + eina_libs + evas_libs) 111 extra_link_args = ecore_libs + efile_libs + eina_libs + evas_libs)
@@ -118,14 +113,14 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
118 113
119 # Edje 114 # Edje
120 edje_cflags, edje_libs = pkg_config('Edje', 'edje', "1.7.99") 115 edje_cflags, edje_libs = pkg_config('Edje', 'edje', "1.7.99")
121 edje_ext = Extension("edje", ["efl/edje/efl.edje.{0}".format(module_suffix)], 116 edje_ext = Extension("edje", ["efl/edje/efl.edje"+module_suffix],
122 include_dirs = ['include/'], 117 include_dirs = ['include/'],
123 extra_compile_args = edje_cflags, 118 extra_compile_args = edje_cflags,
124 extra_link_args = edje_libs + eina_libs + evas_libs) 119 extra_link_args = edje_libs + eina_libs + evas_libs)
125 modules.append(edje_ext) 120 modules.append(edje_ext)
126 121
127 # Edje_Edit 122 # Edje_Edit
128 edje_edit_ext = Extension("edje_edit", ["efl/edje/efl.edje_edit.{0}".format(module_suffix)], 123 edje_edit_ext = Extension("edje_edit", ["efl/edje/efl.edje_edit"+module_suffix],
129 define_macros = [('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)], 124 define_macros = [('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)],
130 include_dirs = ['include/'], 125 include_dirs = ['include/'],
131 extra_compile_args = edje_cflags, 126 extra_compile_args = edje_cflags,
@@ -134,7 +129,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
134 129
135 # Emotion 130 # Emotion
136 emotion_cflags, emotion_libs = pkg_config('Emotion', 'emotion', "1.7.99") 131 emotion_cflags, emotion_libs = pkg_config('Emotion', 'emotion', "1.7.99")
137 emotion_ext = Extension("emotion", ["efl/emotion/efl.emotion.{0}".format(module_suffix)], 132 emotion_ext = Extension("emotion", ["efl/emotion/efl.emotion"+module_suffix],
138 include_dirs = ['include/'], 133 include_dirs = ['include/'],
139 extra_compile_args = emotion_cflags, 134 extra_compile_args = emotion_cflags,
140 extra_link_args = emotion_libs + eina_libs + evas_libs) 135 extra_link_args = emotion_libs + eina_libs + evas_libs)
@@ -143,7 +138,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
143 # Eldbus 138 # Eldbus
144 # eldbus_cflags, eldbus_libs = pkg_config('Eldbus', 'eldbus', "1.7.99") 139 # eldbus_cflags, eldbus_libs = pkg_config('Eldbus', 'eldbus', "1.7.99")
145 # pydbus_cflags, pydbus_libs = pkg_config('dbus-python', 'dbus-python') 140 # pydbus_cflags, pydbus_libs = pkg_config('dbus-python', 'dbus-python')
146 # eldbus_ext = Extension("eldbus", ["efl/eldbus/eldbus.{0}".format(module_suffix)], 141 # eldbus_ext = Extension("eldbus", ["efl/eldbus/eldbus"+module_suffix],
147 # include_dirs = ['include/'], 142 # include_dirs = ['include/'],
148 # extra_compile_args = eldbus_cflags + pydbus_cflags + ecore_cflags, 143 # extra_compile_args = eldbus_cflags + pydbus_cflags + ecore_cflags,
149 # extra_link_args = eldbus_libs) 144 # extra_link_args = eldbus_libs)
@@ -152,7 +147,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
152 # dbus mainloop integration 147 # dbus mainloop integration
153 dbus_cflags, dbus_libs = pkg_config('DBus', 'dbus-python', "0.83.0") 148 dbus_cflags, dbus_libs = pkg_config('DBus', 'dbus-python', "0.83.0")
154 dbus_ml_ext = Extension("dbus_mainloop", 149 dbus_ml_ext = Extension("dbus_mainloop",
155 ["efl/dbus_mainloop/dbus_mainloop.{0}".format(module_suffix), 150 ["efl/dbus_mainloop/dbus_mainloop"+module_suffix,
156 "efl/dbus_mainloop/e_dbus.c"], 151 "efl/dbus_mainloop/e_dbus.c"],
157 extra_compile_args = dbus_cflags + ecore_cflags, 152 extra_compile_args = dbus_cflags + ecore_cflags,
158 extra_link_args = dbus_libs + ecore_libs) 153 extra_link_args = dbus_libs + ecore_libs)
@@ -160,76 +155,76 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
160 155
161 # Elementary 156 # Elementary
162 elm_exts = [ 157 elm_exts = [
163 Extension("elementary.access", ["efl/elementary/access.{0}".format(module_suffix)]), 158 Extension("elementary.access", ["efl/elementary/access"+module_suffix]),
164 Extension("elementary.actionslider", ["efl/elementary/actionslider.{0}".format(module_suffix)]), 159 Extension("elementary.actionslider", ["efl/elementary/actionslider"+module_suffix]),
165 Extension("elementary.background", ["efl/elementary/background.{0}".format(module_suffix)]), 160 Extension("elementary.background", ["efl/elementary/background"+module_suffix]),
166 Extension("elementary.box", ["efl/elementary/box.{0}".format(module_suffix)]), 161 Extension("elementary.box", ["efl/elementary/box"+module_suffix]),
167 Extension("elementary.bubble", ["efl/elementary/bubble.{0}".format(module_suffix)]), 162 Extension("elementary.bubble", ["efl/elementary/bubble"+module_suffix]),
168 Extension("elementary.button", ["efl/elementary/button.{0}".format(module_suffix)]), 163 Extension("elementary.button", ["efl/elementary/button"+module_suffix]),
169 Extension("elementary.calendar_elm", ["efl/elementary/calendar_elm.{0}".format(module_suffix)]), 164 Extension("elementary.calendar_elm", ["efl/elementary/calendar_elm"+module_suffix]),
170 Extension("elementary.check", ["efl/elementary/check.{0}".format(module_suffix)]), 165 Extension("elementary.check", ["efl/elementary/check"+module_suffix]),
171 Extension("elementary.clock", ["efl/elementary/clock.{0}".format(module_suffix)]), 166 Extension("elementary.clock", ["efl/elementary/clock"+module_suffix]),
172 Extension("elementary.colorselector", ["efl/elementary/colorselector.{0}".format(module_suffix)]), 167 Extension("elementary.colorselector", ["efl/elementary/colorselector"+module_suffix]),
173 Extension("elementary.configuration", ["efl/elementary/configuration.{0}".format(module_suffix)]), 168 Extension("elementary.configuration", ["efl/elementary/configuration"+module_suffix]),
174 Extension("elementary.conformant", ["efl/elementary/conformant.{0}".format(module_suffix)]), 169 Extension("elementary.conformant", ["efl/elementary/conformant"+module_suffix]),
175 Extension("elementary.ctxpopup", ["efl/elementary/ctxpopup.{0}".format(module_suffix)]), 170 Extension("elementary.ctxpopup", ["efl/elementary/ctxpopup"+module_suffix]),
176 Extension("elementary.datetime_elm", ["efl/elementary/datetime_elm.{0}".format(module_suffix)]), 171 Extension("elementary.datetime_elm", ["efl/elementary/datetime_elm"+module_suffix]),
177 Extension("elementary.dayselector", ["efl/elementary/dayselector.{0}".format(module_suffix)]), 172 Extension("elementary.dayselector", ["efl/elementary/dayselector"+module_suffix]),
178 Extension("elementary.diskselector", ["efl/elementary/diskselector.{0}".format(module_suffix)]), 173 Extension("elementary.diskselector", ["efl/elementary/diskselector"+module_suffix]),
179 Extension("elementary.entry", ["efl/elementary/entry.{0}".format(module_suffix)]), 174 Extension("elementary.entry", ["efl/elementary/entry"+module_suffix]),
180 Extension("elementary.fileselector_button", ["efl/elementary/fileselector_button.{0}".format(module_suffix)]), 175 Extension("elementary.fileselector_button", ["efl/elementary/fileselector_button"+module_suffix]),
181 Extension("elementary.fileselector_entry", ["efl/elementary/fileselector_entry.{0}".format(module_suffix)]), 176 Extension("elementary.fileselector_entry", ["efl/elementary/fileselector_entry"+module_suffix]),
182 Extension("elementary.fileselector", ["efl/elementary/fileselector.{0}".format(module_suffix)]), 177 Extension("elementary.fileselector", ["efl/elementary/fileselector"+module_suffix]),
183 Extension("elementary.flip", ["efl/elementary/flip.{0}".format(module_suffix)]), 178 Extension("elementary.flip", ["efl/elementary/flip"+module_suffix]),
184 Extension("elementary.flipselector", ["efl/elementary/flipselector.{0}".format(module_suffix)]), 179 Extension("elementary.flipselector", ["efl/elementary/flipselector"+module_suffix]),
185 Extension("elementary.frame", ["efl/elementary/frame.{0}".format(module_suffix)]), 180 Extension("elementary.frame", ["efl/elementary/frame"+module_suffix]),
186 Extension("elementary.general", ["efl/elementary/general.{0}".format(module_suffix)]), 181 Extension("elementary.general", ["efl/elementary/general"+module_suffix]),
187 Extension("elementary.gengrid", ["efl/elementary/gengrid.{0}".format(module_suffix)]), 182 Extension("elementary.gengrid", ["efl/elementary/gengrid"+module_suffix]),
188 Extension("elementary.genlist", ["efl/elementary/genlist.{0}".format(module_suffix)]), 183 Extension("elementary.genlist", ["efl/elementary/genlist"+module_suffix]),
189 Extension("elementary.gesture_layer", ["efl/elementary/gesture_layer.{0}".format(module_suffix)]), 184 Extension("elementary.gesture_layer", ["efl/elementary/gesture_layer"+module_suffix]),
190 Extension("elementary.grid", ["efl/elementary/grid.{0}".format(module_suffix)]), 185 Extension("elementary.grid", ["efl/elementary/grid"+module_suffix]),
191 Extension("elementary.hover", ["efl/elementary/hover.{0}".format(module_suffix)]), 186 Extension("elementary.hover", ["efl/elementary/hover"+module_suffix]),
192 Extension("elementary.hoversel", ["efl/elementary/hoversel.{0}".format(module_suffix)]), 187 Extension("elementary.hoversel", ["efl/elementary/hoversel"+module_suffix]),
193 Extension("elementary.icon", ["efl/elementary/icon.{0}".format(module_suffix)]), 188 Extension("elementary.icon", ["efl/elementary/icon"+module_suffix]),
194 Extension("elementary.image", ["efl/elementary/image.{0}".format(module_suffix)]), 189 Extension("elementary.image", ["efl/elementary/image"+module_suffix]),
195 Extension("elementary.index", ["efl/elementary/index.{0}".format(module_suffix)]), 190 Extension("elementary.index", ["efl/elementary/index"+module_suffix]),
196 Extension("elementary.innerwindow", ["efl/elementary/innerwindow.{0}".format(module_suffix)]), 191 Extension("elementary.innerwindow", ["efl/elementary/innerwindow"+module_suffix]),
197 Extension("elementary.label", ["efl/elementary/label.{0}".format(module_suffix)]), 192 Extension("elementary.label", ["efl/elementary/label"+module_suffix]),
198 Extension("elementary.layout_class", ["efl/elementary/layout_class.{0}".format(module_suffix)]), 193 Extension("elementary.layout_class", ["efl/elementary/layout_class"+module_suffix]),
199 Extension("elementary.layout", ["efl/elementary/layout.{0}".format(module_suffix)]), 194 Extension("elementary.layout", ["efl/elementary/layout"+module_suffix]),
200 Extension("elementary.list", ["efl/elementary/list.{0}".format(module_suffix)]), 195 Extension("elementary.list", ["efl/elementary/list"+module_suffix]),
201 Extension("elementary.mapbuf", ["efl/elementary/mapbuf.{0}".format(module_suffix)]), 196 Extension("elementary.mapbuf", ["efl/elementary/mapbuf"+module_suffix]),
202 Extension("elementary.map", ["efl/elementary/map.{0}".format(module_suffix)]), 197 Extension("elementary.map", ["efl/elementary/map"+module_suffix]),
203 Extension("elementary.menu", ["efl/elementary/menu.{0}".format(module_suffix)]), 198 Extension("elementary.menu", ["efl/elementary/menu"+module_suffix]),
204 Extension("elementary.multibuttonentry", ["efl/elementary/multibuttonentry.{0}".format(module_suffix)]), 199 Extension("elementary.multibuttonentry", ["efl/elementary/multibuttonentry"+module_suffix]),
205 Extension("elementary.naviframe", ["efl/elementary/naviframe.{0}".format(module_suffix)]), 200 Extension("elementary.naviframe", ["efl/elementary/naviframe"+module_suffix]),
206 Extension("elementary.need", ["efl/elementary/need.{0}".format(module_suffix)]), 201 Extension("elementary.need", ["efl/elementary/need"+module_suffix]),
207 Extension("elementary.notify", ["efl/elementary/notify.{0}".format(module_suffix)]), 202 Extension("elementary.notify", ["efl/elementary/notify"+module_suffix]),
208 Extension("elementary.object_item", ["efl/elementary/object_item.{0}".format(module_suffix)]), 203 Extension("elementary.object_item", ["efl/elementary/object_item"+module_suffix]),
209 Extension("elementary.object", ["efl/elementary/object.{0}".format(module_suffix)]), 204 Extension("elementary.object", ["efl/elementary/object"+module_suffix]),
210 Extension("elementary.panel", ["efl/elementary/panel.{0}".format(module_suffix)]), 205 Extension("elementary.panel", ["efl/elementary/panel"+module_suffix]),
211 Extension("elementary.panes", ["efl/elementary/panes.{0}".format(module_suffix)]), 206 Extension("elementary.panes", ["efl/elementary/panes"+module_suffix]),
212 Extension("elementary.photocam", ["efl/elementary/photocam.{0}".format(module_suffix)]), 207 Extension("elementary.photocam", ["efl/elementary/photocam"+module_suffix]),
213 Extension("elementary.photo", ["efl/elementary/photo.{0}".format(module_suffix)]), 208 Extension("elementary.photo", ["efl/elementary/photo"+module_suffix]),
214 Extension("elementary.plug", ["efl/elementary/plug.{0}".format(module_suffix)]), 209 Extension("elementary.plug", ["efl/elementary/plug"+module_suffix]),
215 Extension("elementary.popup", ["efl/elementary/popup.{0}".format(module_suffix)]), 210 Extension("elementary.popup", ["efl/elementary/popup"+module_suffix]),
216 Extension("elementary.progressbar", ["efl/elementary/progressbar.{0}".format(module_suffix)]), 211 Extension("elementary.progressbar", ["efl/elementary/progressbar"+module_suffix]),
217 Extension("elementary.radio", ["efl/elementary/radio.{0}".format(module_suffix)]), 212 Extension("elementary.radio", ["efl/elementary/radio"+module_suffix]),
218 Extension("elementary.scroller", ["efl/elementary/scroller.{0}".format(module_suffix)]), 213 Extension("elementary.scroller", ["efl/elementary/scroller"+module_suffix]),
219 Extension("elementary.segment_control", ["efl/elementary/segment_control.{0}".format(module_suffix)]), 214 Extension("elementary.segment_control", ["efl/elementary/segment_control"+module_suffix]),
220 Extension("elementary.separator", ["efl/elementary/separator.{0}".format(module_suffix)]), 215 Extension("elementary.separator", ["efl/elementary/separator"+module_suffix]),
221 Extension("elementary.slider", ["efl/elementary/slider.{0}".format(module_suffix)]), 216 Extension("elementary.slider", ["efl/elementary/slider"+module_suffix]),
222 Extension("elementary.slideshow", ["efl/elementary/slideshow.{0}".format(module_suffix)]), 217 Extension("elementary.slideshow", ["efl/elementary/slideshow"+module_suffix]),
223 Extension("elementary.spinner", ["efl/elementary/spinner.{0}".format(module_suffix)]), 218 Extension("elementary.spinner", ["efl/elementary/spinner"+module_suffix]),
224 #Extension("elementary.store", ["efl/elementary/store.{0}".format(module_suffix)]), 219 #Extension("elementary.store", ["efl/elementary/store"+module_suffix]),
225 Extension("elementary.table", ["efl/elementary/table.{0}".format(module_suffix)]), 220 Extension("elementary.table", ["efl/elementary/table"+module_suffix]),
226 Extension("elementary.theme", ["efl/elementary/theme.{0}".format(module_suffix)]), 221 Extension("elementary.theme", ["efl/elementary/theme"+module_suffix]),
227 Extension("elementary.thumb", ["efl/elementary/thumb.{0}".format(module_suffix)]), 222 Extension("elementary.thumb", ["efl/elementary/thumb"+module_suffix]),
228 Extension("elementary.toolbar", ["efl/elementary/toolbar.{0}".format(module_suffix)]), 223 Extension("elementary.toolbar", ["efl/elementary/toolbar"+module_suffix]),
229 Extension("elementary.transit", ["efl/elementary/transit.{0}".format(module_suffix)]), 224 Extension("elementary.transit", ["efl/elementary/transit"+module_suffix]),
230 Extension("elementary.video", ["efl/elementary/video.{0}".format(module_suffix)]), 225 Extension("elementary.video", ["efl/elementary/video"+module_suffix]),
231 Extension("elementary.web", ["efl/elementary/web.{0}".format(module_suffix)]), 226 Extension("elementary.web", ["efl/elementary/web"+module_suffix]),
232 Extension("elementary.window", ["efl/elementary/window.{0}".format(module_suffix)]), 227 Extension("elementary.window", ["efl/elementary/window"+module_suffix]),
233 ] 228 ]
234 229
235 elm_cflags, elm_libs = pkg_config('Elementary', 'elementary', "1.7.99") 230 elm_cflags, elm_libs = pkg_config('Elementary', 'elementary', "1.7.99")
@@ -241,26 +236,23 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
241 modules = modules + elm_exts 236 modules = modules + elm_exts
242 237
243 238
244if __name__ == "__main__": 239setup(
245 setup( 240 name = "efl",
246 name = "efl", 241 version = "1.7.99",
247 version = "1.7.99", 242 author = "Davide <davemds> Andreoli",
248 author = "Davide <davemds> Andreoli", 243 author_email = "dave@gurumeditation.it",
249 author_email = "dave@gurumeditation.it", 244 maintainer = "Davide <davemds> Andreoli",
250 maintainer = "Davide <davemds> Andreoli", 245 maintainer_email = "dave@gurumeditation.it",
251 maintainer_email = "dave@gurumeditation.it", 246 url = "http://www.enlightenment.org",
252 url = "http://www.enlightenment.org", 247 description = "Python bindings for the EFL stack",
253 description = "Python bindings for the EFL stack", 248 license = "GNU Lesser General Public License (LGPL)",
254 license = "GNU Lesser General Public License (LGPL)", 249 cmdclass = {
255 cmdclass = {'build_ext': build_ext, 'build_doc': BuildDoc, 'clean_generated_files': CleanGenerated}, 250 'build_ext': build_ext,
256 packages = ["efl", "efl.elementary", "efl.utils"], 251 'build_doc': BuildDoc,
257 package_data = {"efl": ["efl/dbus_mainloop/e_dbus.h"]}, 252 'clean_generated_files': CleanGenerated
258 # command_options = { 253 },
259 # "build_doc": { 254 packages = ["efl", "efl.elementary", "efl.utils"],
260 # "builder": (None, "html"), 255 package_data = {"efl": ["efl/dbus_mainloop/e_dbus.h"]},
261 # "builder": (None, "coverage"), 256 ext_package = "efl",
262 # }, 257 ext_modules = cythonize(modules, include_path=["include"]),
263 # }, 258)
264 ext_package = "efl",
265 ext_modules = cythonize(modules, include_path=["include"]),
266 )