summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-12-13 18:31:06 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-12-13 18:32:44 +0200
commit0b0130917656c71699140ca1460bab4aac5ac380 (patch)
treec82dc387e28f1c580acf3996f430dd07ef6ba4f6
parentffccf7a59a213a4ad232b46be2a6154222a20984 (diff)
Fix: setup.py
- fixing setup.py, to work properly in case of Cython - README: "compiling and install" section added - eobase/eodefaut updated Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--README28
-rw-r--r--eorepo/eobase.c2
-rw-r--r--eorepo/eodefault.c2
-rw-r--r--setup.py9
4 files changed, 37 insertions, 4 deletions
diff --git a/README b/README
index b8f8332..fa60406 100644
--- a/README
+++ b/README
@@ -16,6 +16,34 @@ EO Introspection provides easy generation
16of Python and JS bindings for your library based on Eo. 16of Python and JS bindings for your library based on Eo.
17 17
18##################################################### 18#####################################################
19COMPILING AND INSTALLING
20
21 python-dev package is required,
22 because package needs to compile source c files
23 Install python-dev package:
24 > sudo apt-get install python-dev build-essential
25
26 Installing eoparser:
27
28 > python setup.py build
29 (do this as root unless you are installing in your users directories)
30 > python setup.py install
31
32
33 To compile Cython files, cython (0.17) is required.
34 Install pip (python installs packages):
35 > sudo apt-get install python-pip
36 Install cython:
37 > pip install cython
38 or upgrade:
39 > pip install --upgrade cython
40
41
42
43
44#
45#
46#####################################################
19 47
20Tools: 48Tools:
21 Scanner 49 Scanner
diff --git a/eorepo/eobase.c b/eorepo/eobase.c
index 182adea..7420a4e 100644
--- a/eorepo/eobase.c
+++ b/eorepo/eobase.c
@@ -1,4 +1,4 @@
1/* Generated by Cython 0.17.2 on Thu Dec 13 13:41:17 2012 */ 1/* Generated by Cython 0.17.2 on Thu Dec 13 18:28:03 2012 */
2 2
3#define PY_SSIZE_T_CLEAN 3#define PY_SSIZE_T_CLEAN
4#include "Python.h" 4#include "Python.h"
diff --git a/eorepo/eodefault.c b/eorepo/eodefault.c
index 20bbbbe..5c71278 100644
--- a/eorepo/eodefault.c
+++ b/eorepo/eodefault.c
@@ -1,4 +1,4 @@
1/* Generated by Cython 0.17.2 on Thu Dec 13 13:41:17 2012 */ 1/* Generated by Cython 0.17.2 on Thu Dec 13 18:28:03 2012 */
2 2
3#define PY_SSIZE_T_CLEAN 3#define PY_SSIZE_T_CLEAN
4#include "Python.h" 4#include "Python.h"
diff --git a/setup.py b/setup.py
index 8b4ca0e..237f12f 100644
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,7 @@ e_include_dirs = ["."]
17e_library_dirs = [] 17e_library_dirs = []
18e_libraries = [] 18e_libraries = []
19 19
20cmdclass = {}
20ext_modules = [] 21ext_modules = []
21 22
22 23
@@ -38,7 +39,8 @@ if USE_CYTHON:
38 Extension("eorepo.eobase", ['eorepo/eobase.pyx'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args), 39 Extension("eorepo.eobase", ['eorepo/eobase.pyx'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),
39 ] 40 ]
40 41
41 cmdclass = {'build_ext' : build_ext}, 42 #cmdclass = {'build_ext' : build_ext}
43 cmdclass.update({'build_ext' : build_ext})
42else: 44else:
43 print "Not using Cython" 45 print "Not using Cython"
44 ext_modules += [ 46 ext_modules += [
@@ -50,13 +52,16 @@ else:
50 52
51 53
52setup( 54setup(
55 cmdclass = cmdclass,
53 name='eoparser_eorepo', 56 name='eoparser_eorepo',
54 version='0.1dev', 57 version='0.1dev',
55 author='Yakov Goldberg', 58 author='Yakov Goldberg',
56 author_email='yakov.goldberg@gmail.com', 59 author_email='yakov.goldberg@gmail.com',
57 packages=['eoparser', 'eorepo'], 60 packages=['eoparser', 'eorepo'],
58 package_data={'eoparser': ['data/types.xml'], 61 package_data={'eoparser': ['data/types.xml'],
59 'eorepo': ['EoBase.xml', 'eodefault.pxd'] 62 'eorepo': ['EoBase.xml',
63 'eodefault.pxd', 'eobase.pxd',
64 'eodefault.c', 'eobase.c']
60 }, 65 },
61 ext_modules = ext_modules, 66 ext_modules = ext_modules,
62 67