diff -N -r -u python-ecore-0.5.0+r49824/debian/control python-ecore-0.5.0+r49824-new/debian/control --- python-ecore-0.5.0+r49824/debian/control 2010-08-29 13:27:59.000000000 +0200 +++ python-ecore-0.5.0+r49824-new/debian/control 2010-08-29 14:02:27.024191012 +0200 @@ -4,7 +4,7 @@ Maintainer: Debian Pkg-e Team Uploaders: Jan Lübbe , Albin Tonnerre Build-Depends: debhelper (>= 5.0.38), cdbs (>= 0.4.49), - python-all-dev (>= 2.3.5-11), python-support (>= 0.5.3), + python-all-dev (>= 2.3.5-11), python-support (>= 0.5.3), python-epydoc, python-setuptools (>= 0.6c9), cython, python-pyrex, python-evas-dev (>= 0.3.1+svn20091203), libecore-dev (>= 0.9.9.49898) Standards-Version: 3.8.3 @@ -26,3 +26,30 @@ . This package contains modules that allow you to use ecore from Python. +Package: python-ecore-dev +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-ecore, libecore-dev (>= 0.9.9.49898) +Description: Python bindings for the Enlightenment core library (ecore) + Ecore is the core event abstraction layer and X abstraction layer that makes + doing selections, Xdnd, general X stuff, and event loops, timeouts and idle + handlers fast, optimized, and convenient. It's a separate library so anyone + can make use of the work put into Ecore to make this job easy for + applications. + . + This package contains python-ecore development files + +Package: python-ecore-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Enhances: python-ecore-dev +Description: Python bindings for the Enlightenment core library (ecore) + Ecore is the core event abstraction layer and X abstraction layer that makes + doing selections, Xdnd, general X stuff, and event loops, timeouts and idle + handlers fast, optimized, and convenient. It's a separate library so anyone + can make use of the work put into Ecore to make this job easy for + applications. + . + This package contains API documentation for python-ecore diff -N -r -u python-ecore-0.5.0+r49824/debian/python-ecore-dev.install python-ecore-0.5.0+r49824-new/debian/python-ecore-dev.install --- python-ecore-0.5.0+r49824/debian/python-ecore-dev.install 1970-01-01 01:00:00.000000000 +0100 +++ python-ecore-0.5.0+r49824-new/debian/python-ecore-dev.install 2010-08-29 13:21:06.947996513 +0200 @@ -0,0 +1 @@ +debian/tmp/usr/include diff -N -r -u python-ecore-0.5.0+r49824/debian/python-ecore-doc.docs python-ecore-0.5.0+r49824-new/debian/python-ecore-doc.docs --- python-ecore-0.5.0+r49824/debian/python-ecore-doc.docs 1970-01-01 01:00:00.000000000 +0100 +++ python-ecore-0.5.0+r49824-new/debian/python-ecore-doc.docs 2010-08-29 13:21:32.223690951 +0200 @@ -0,0 +1 @@ +doc/api/html diff -N -r -u python-ecore-0.5.0+r49824/debian/python-ecore.install python-ecore-0.5.0+r49824-new/debian/python-ecore.install --- python-ecore-0.5.0+r49824/debian/python-ecore.install 1970-01-01 01:00:00.000000000 +0100 +++ python-ecore-0.5.0+r49824-new/debian/python-ecore.install 2010-08-29 13:22:45.816191420 +0200 @@ -0,0 +1 @@ +debian/tmp/usr/lib diff -N -r -u python-ecore-0.5.0+r49824/debian/rules python-ecore-0.5.0+r49824-new/debian/rules --- python-ecore-0.5.0+r49824/debian/rules 2010-08-29 13:27:59.000000000 +0200 +++ python-ecore-0.5.0+r49824-new/debian/rules 2010-08-29 13:34:22.928190127 +0200 @@ -6,3 +6,6 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk include /usr/share/cdbs/1/class/python-distutils.mk + +build/python-ecore-doc:: build/python-ecore + ./gen-doc-api.sh diff -N -r -u python-ecore-0.5.0+r49824/setup.py python-ecore-0.5.0+r49824-new/setup.py --- python-ecore-0.5.0+r49824/setup.py 2010-07-09 14:40:44.000000000 +0200 +++ python-ecore-0.5.0+r49824-new/setup.py 2010-08-29 14:16:08.911914748 +0200 @@ -20,6 +20,8 @@ from setuptools.command.build_ext import build_ext from setuptools import setup, find_packages, Extension +from distutils.command.install_headers import install_headers +from distutils.sysconfig import get_python_inc import subprocess import shlex @@ -68,6 +70,19 @@ 'include/ecore/c_ecore.pxd', ], **pkgconfig('"ecore >= 0.9.9.49539" ''"eina-0 >= 0.9.9.49539"')) +headers = ['ecore/ecore.c_ecore.h', + 'include/ecore/x/c_ecore_x.pxd', + 'include/ecore/x/screensaver.pxd', + 'include/ecore/x/__init__.py', + 'include/ecore/imf/c_ecore_imf.pxd', + 'include/ecore/imf/__init__.py', + 'include/ecore/win32/c_ecore_win32.pxd', + 'include/ecore/win32/__init__.py', + 'include/ecore/c_ecore.pxd', + 'include/ecore/__init__.py', + 'include/ecore/evas/c_ecore_evas.pxd', + 'include/ecore/evas/__init__.py', + ] @@ -114,6 +129,38 @@ if hasattr(self, "pyrex_include_dirs"): self.pyrex_include_dirs.extend(self.include_dirs) +class ecore_install_headers(install_headers): + + def initialize_options(self): + install_headers.initialize_options(self) + + self.root = None + self.prefix = None + self.install_dir = None + + def finalize_options(self): + if self.prefix is None: + develop = self.distribution.get_command_obj('develop', False) + if develop: + develop.ensure_finalized() + self.prefix = develop.prefix + + self.set_undefined_options('install', + ('root', 'root'), + ('prefix', 'prefix'), + ('force', 'force'), + ) + + if self.install_dir is None: + instd = get_python_inc(prefix=self.prefix) + else: + instd = self.install_dir + + self.install_dir = os.path.join(instd, 'ecore') + if self.root is not None: + self.install_dir = "%s%s%s" % \ + (self.root, os.path.sep, self.install_dir) + module_list = [ecoremodule] if int(os.environ.get("ECORE_BUILD_EVAS", 1)): @@ -197,9 +244,11 @@ keywords='wrapper binding enlightenment abstraction event ecore', classifiers=trove_classifiers, packages=find_packages(), + headers=headers, install_requires=['python-evas>=0.5.0'], setup_requires=['python-evas>=0.5.0'], ext_modules=module_list, zip_safe=False, - cmdclass={'build_ext': ecore_build_ext,}, + cmdclass={'build_ext': ecore_build_ext, + 'install_headers': ecore_install_headers}, )