summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-12-09 10:19:03 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-12-09 10:19:03 +0200
commiteaaf1a4a746ace055d6b8e9b2c3e9d5917238cf8 (patch)
treea268259defcec64a909d0f4490e1e201abb06897
parent4c4fc627e169d8e4542834a3987434ba1f2475ad (diff)
Removed elementary from default pkg-config parameter
Python README updated Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--eo_py/README24
-rwxr-xr-xeo_py/eo_py_gen.py4
2 files changed, 20 insertions, 8 deletions
diff --git a/eo_py/README b/eo_py/README
index a55ccf6..e5698ae 100644
--- a/eo_py/README
+++ b/eo_py/README
@@ -17,14 +17,26 @@ python module.
17 If include file wasn't found, explicit --include=INCLUDE_DIR dir is needed 17 If include file wasn't found, explicit --include=INCLUDE_DIR dir is needed
18 18
19 Files to be generated: 19 Files to be generated:
20 - MODULE_NAME.pyx 20 - *.pxi files will be created for each *.xml
21 - *.pxi, *.pxd will be created for each *.xml 21 - *.pxd will be created one for module.
22 - MODULE_NAME.pyx (only one pyx allowed for compiling module)
23 this file includes all *.pxi
22 - setup.py 24 - setup.py
23 setup.py can be edited in order to add include paths and libraries, 25 setup.py can be edited in order to add include paths, libraries
24 which were not mentioned in --pkg option 26 (which were not mentioned in --pkg option)
27 compile options
28
29 Addition:
30 Sometimes, additional functions, which are not introspectable,
31 must be included. User must implement and add them manually.
32 (Cython knowledge is required)
33
34 To do this user must provide definitions in *.pxd, *.pxi files,
35 include *.pxi into generated 'module_name.pyx' file and compile.
36
25 b. Compiling module: 37 b. Compiling module:
26 > python setup.py build_ext --inplace 38 > python setup.py build_ext --inplace
27 - py_module.so will be generated. 39 - module_name.so will be generated.
28 40
29 Put module into python search path and import into your code. 41 Put module into python search path and import into your code.
30 42
@@ -41,7 +53,7 @@ python module.
41 - eobase.xml will be created in PY_EOBASE 53 - eobase.xml will be created in PY_EOBASE
42 c. Creating eobase python sources: 54 c. Creating eobase python sources:
43 > python eo_py_gen.py --dir=PY_EOBASE --outdir=PY_EOBASE --module=eobase 55 > python eo_py_gen.py --dir=PY_EOBASE --outdir=PY_EOBASE --module=eobase
44 --pkg="elementary eo" 56 --pkg="eo"
45 To create base module, option --module must be "eobase" 57 To create base module, option --module must be "eobase"
46 - eobase.pxd, eobase.pyx - will be created 58 - eobase.pxd, eobase.pyx - will be created
47 - eodefault.pxd, eodefault.pyx - will be copied into PY_EOBASE 59 - eodefault.pxd, eodefault.pyx - will be copied into PY_EOBASE
diff --git a/eo_py/eo_py_gen.py b/eo_py/eo_py_gen.py
index b3ff621..1dfad4f 100755
--- a/eo_py/eo_py_gen.py
+++ b/eo_py/eo_py_gen.py
@@ -69,8 +69,8 @@ def main():
69 parser.add_argument("-i", "--include", dest="xmldir", default=sys.path, 69 parser.add_argument("-i", "--include", dest="xmldir", default=sys.path,
70 action="append", help="Include eobase directory") 70 action="append", help="Include eobase directory")
71 71
72 parser.add_argument("--pkg", dest="pkg", default = "elementary eo", 72 parser.add_argument("--pkg", dest="pkg", default = "eo",
73 action="store", help="pkg-confing libraries. Default: \"elementary eo\"") 73 action="store", help="pkg-confing libraries. Default: \"eo\"")
74 74
75 parser.add_argument("-m", "--module", dest="module", 75 parser.add_argument("-m", "--module", dest="module",
76 action="store", help="Name of module to generate") 76 action="store", help="Name of module to generate")