kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=d98cd27107ce3588d8f84f4c90ae1f19f2840cbd
commit d98cd27107ce3588d8f84f4c90ae1f19f2840cbd Author: Kai Huuhko <[email protected]> Date: Tue May 13 15:00:46 2014 +0300 efl.ecore: Transform into a package The old efl.ecore.so module renamed to __init__.so which gets automatically used for the package namespace when there is an empty __init__.py included. --- include/efl.ecore.pxd => efl/ecore/__init__.pxd | 0 efl/ecore/__init__.py | 0 efl/ecore/{efl.ecore.pyx => __init__.pyx} | 0 include/efl.ecore.enums.pxd => efl/ecore/enums.pxd | 0 setup.py | 3 ++- 5 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/efl.ecore.pxd b/efl/ecore/__init__.pxd similarity index 100% rename from include/efl.ecore.pxd rename to efl/ecore/__init__.pxd diff --git a/efl/ecore/__init__.py b/efl/ecore/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/efl/ecore/efl.ecore.pyx b/efl/ecore/__init__.pyx similarity index 100% rename from efl/ecore/efl.ecore.pyx rename to efl/ecore/__init__.pyx diff --git a/include/efl.ecore.enums.pxd b/efl/ecore/enums.pxd similarity index 100% rename from include/efl.ecore.enums.pxd rename to efl/ecore/enums.pxd diff --git a/setup.py b/setup.py index d1906e4..090070b 100755 --- a/setup.py +++ b/setup.py @@ -233,12 +233,13 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): ecore_file_cflags, ecore_file_libs = pkg_config( 'EcoreFile', 'ecore-file', EFL_MIN_VERSION) ecore_ext = Extension( - "ecore", ["efl/ecore/efl.ecore" + module_suffix], + "ecore.__init__", ["efl/ecore/__init__" + module_suffix], include_dirs=['include/'], extra_compile_args=list(set(ecore_cflags + ecore_file_cflags)), extra_link_args=ecore_libs + ecore_file_libs + eina_libs + evas_libs, ) modules.append(ecore_ext) + packages.append("efl.ecore") # compatibility packages.append("ecore") --
