aboutsummaryrefslogtreecommitdiffstats
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
parentMajor fixes (diff)
downloadeo_bindings-0b0130917656c71699140ca1460bab4aac5ac380.tar.gz
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
of Python and JS bindings for your library based on Eo.
#####################################################
+COMPILING AND INSTALLING
+
+ python-dev package is required,
+ because package needs to compile source c files
+ Install python-dev package:
+ > sudo apt-get install python-dev build-essential
+
+ Installing eoparser:
+
+ > python setup.py build
+ (do this as root unless you are installing in your users directories)
+ > python setup.py install
+
+
+ To compile Cython files, cython (0.17) is required.
+ Install pip (python installs packages):
+ > sudo apt-get install python-pip
+ Install cython:
+ > pip install cython
+ or upgrade:
+ > pip install --upgrade cython
+
+
+
+
+#
+#
+#####################################################
Tools:
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 @@
-/* Generated by Cython 0.17.2 on Thu Dec 13 13:41:17 2012 */
+/* Generated by Cython 0.17.2 on Thu Dec 13 18:28:03 2012 */
#define PY_SSIZE_T_CLEAN
#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 @@
-/* Generated by Cython 0.17.2 on Thu Dec 13 13:41:17 2012 */
+/* Generated by Cython 0.17.2 on Thu Dec 13 18:28:03 2012 */
#define PY_SSIZE_T_CLEAN
#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 = ["."]
e_library_dirs = []
e_libraries = []
+cmdclass = {}
ext_modules = []
@@ -38,7 +39,8 @@ if USE_CYTHON:
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),
]
- cmdclass = {'build_ext' : build_ext},
+ #cmdclass = {'build_ext' : build_ext}
+ cmdclass.update({'build_ext' : build_ext})
else:
print "Not using Cython"
ext_modules += [
@@ -50,13 +52,16 @@ else:
setup(
+ cmdclass = cmdclass,
name='eoparser_eorepo',
version='0.1dev',
author='Yakov Goldberg',
author_email='yakov.goldberg@gmail.com',
packages=['eoparser', 'eorepo'],
package_data={'eoparser': ['data/types.xml'],
- 'eorepo': ['EoBase.xml', 'eodefault.pxd']
+ 'eorepo': ['EoBase.xml',
+ 'eodefault.pxd', 'eobase.pxd',
+ 'eodefault.c', 'eobase.c']
},
ext_modules = ext_modules,