summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-19 18:44:52 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-19 18:44:52 +0200
commit11938a49bd5cbc5e506fe2289fe1f8110fa78de8 (patch)
tree76a4f3419d5525a4d6d371b339af063c56e5d463
parent251ef36f33c6032c965431de1b6e559e9ab790cf (diff)
PyGen: don't copy eodafault.pyx to places it's not needed
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rwxr-xr-xeo_py/eo_py_gen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/eo_py/eo_py_gen.py b/eo_py/eo_py_gen.py
index 68ba3f7..b3ff621 100755
--- a/eo_py/eo_py_gen.py
+++ b/eo_py/eo_py_gen.py
@@ -132,7 +132,9 @@ def main():
132 f_pxd = os.path.join(sourcedir, "eodefault.pxd") 132 f_pxd = os.path.join(sourcedir, "eodefault.pxd")
133 f_init = os.path.join(sourcedir, "__init__.py") 133 f_init = os.path.join(sourcedir, "__init__.py")
134 try: 134 try:
135 shutil.copy(f_pyx, outdir) 135 #this file is needed only to build eodefault.
136 if args.module == "eobase":
137 shutil.copy(f_pyx, outdir)
136 shutil.copy(f_pxd, outdir) 138 shutil.copy(f_pxd, outdir)
137 shutil.copy(f_init, outdir) 139 shutil.copy(f_init, outdir)
138 except IOError as ex: 140 except IOError as ex: