summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.goldberg@gmail.com>2012-12-17 01:21:04 +0200
committerYakov Goldberg <yakov.goldberg@gmail.com>2012-12-17 01:21:04 +0200
commitb332dac9eb14f009f9538c2b96c6ff652f9d4916 (patch)
tree0f1fb57edc73f0da9d7274987fc375ea9e25ec15
parent1f2d875a8612eb0844eb111ed38b45aa08267c16 (diff)
DEV_README up
Signed-off-by: Yakov Goldberg <yakov.goldberg@gmail.com>
-rw-r--r--DEV_README82
1 files changed, 82 insertions, 0 deletions
diff --git a/DEV_README b/DEV_README
index ccd06bb..d115463 100644
--- a/DEV_README
+++ b/DEV_README
@@ -193,4 +193,86 @@ language bindings for C libraries based on Eo (E Object) library,
193 -DELM_INTERNAL_API_ARGESFSDFEFC=1 193 -DELM_INTERNAL_API_ARGESFSDFEFC=1
194 194
195 195
196* EO repository for Python
197 initial eorepo package will be installed with eoparser package.
198 Layout:
199 eorepo /
200 eobase.so
201 eodefault.so
202 __init__.py
203 EoBase.xml
204 eobase.pxd
205 eobase.c
206 eodefault.pxd
207 eodefault.c
208
209
210 When generating cython files for some module:
211 - all classes are parsed
212 - EoBase will be parent for some classes,
213 so EoBase will be imported from eorepo.eobase
214 also eodeafault will be cimported from eorepo.eobase.
215
216 but we need to provide mechanism to import modules for any case.
217
218 following packages will be also installed into eorepo folder.
219
220 1. Correct layout should be like this:
221
222 eorepo /
223 eobase /
224 c_eobase.so
225 eodefault.so
226 __init__.py
227 import eodefault
228 eodefault.eo_init()
229 from eorepo.eobase.c_eobase import EoBase
230 evas /
231 c_evas.so
232 __init__.py
233 from eorepo.evas.c_evas import EvasObj
234 elementary /
235 c_elementary.so
236 __init__.py # this can be autogenerated
237 from eorepo.elementary.c_elementary import ElmWin
238
239
240 elementary class, which depends on EvasClass
241 must be able to find path and module to import this EvasClass.
242 T.e. must do: from eorepo.evas.c_evas import EvasClass.
243
244 in some file:
245 C
246
247
248 usage:
249 import eorepo.elementary - #this will activate __init__
250 #in elementary folder, and will
251 # import ElmWin from c_elementary into elementary
252 # so eorepo.elementary.ElmWin can be used
253 # or like this
254 from eorepo.elementary import ElmWin
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
196 278