[oe-commits] Andreas Oberritter : python-zopeinterface-3.5.1: fix packaging

git version control git at git.openembedded.org
Thu Feb 3 22:36:26 UTC 2011


Module: openembedded.git
Branch: ulf/linux-2.6.30-2011-01-16
Commit: 2bb71e9d8262ee72b54bd5a4f758d525dc6b0537
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2bb71e9d8262ee72b54bd5a4f758d525dc6b0537

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Sun Jan 23 01:54:17 2011 +0000

python-zopeinterface-3.5.1: fix packaging

* Inherit setuptools instead of distutils.

  Install paths with distutils (built on x86_64 for mipsel):
  usr/lib/python2.6/site-packages/zope.interface-3.5.1-py2.6-linux-x86_64.egg/zope/interface/*.py

  Install paths with setuptools:
  usr/lib/python2.6/site-packages/zope/interface/*.py

* Package tests into ${PN}-tests.
* Package .c files into ${PN}-dev.
* Package .txt files into ${PN}-doc.
* oe-stylized.

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
CC: Michael 'Mickey' Lauer <mlauer at vanille-media.de>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/zope/python-zopeinterface_3.5.1.bb |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/recipes/zope/python-zopeinterface_3.5.1.bb b/recipes/zope/python-zopeinterface_3.5.1.bb
index c0d3f60..1267756 100644
--- a/recipes/zope/python-zopeinterface_3.5.1.bb
+++ b/recipes/zope/python-zopeinterface_3.5.1.bb
@@ -2,17 +2,21 @@ DESCRIPTION = "Interface definitions for Zope products"
 SECTION = "console/network"
 PRIORITY = "optional"
 LICENSE = "ZPL"
-
-RPROVIDES_${PN} += " zope-interfaces"
-
-inherit distutils
-
-PR = "r1"
+RPROVIDES_${PN} += "zope-interfaces"
+PR = "r2"
 
 SRC_URI = "http://pypi.python.org/packages/source/z/zope.interface/zope.interface-${PV}.tar.gz"
+SRC_URI[md5sum] = "685fc532550abb07cca6190c9cd2b901"
+SRC_URI[sha256sum] = "b81d898532c47f73475c2d0c23580e289eed25923d007eca8e62750c0998bba0"
+
 S = "${WORKDIR}/zope.interface-${PV}"
 
-FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/*.egg/*/*/.debug"  
+inherit setuptools
 
-SRC_URI[md5sum] = "685fc532550abb07cca6190c9cd2b901"
-SRC_URI[sha256sum] = "b81d898532c47f73475c2d0c23580e289eed25923d007eca8e62750c0998bba0"
+FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/*.egg/*/*/.debug"
+FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/zope/interface/*.c"
+FILES_${PN}-doc += "${PYTHON_SITEPACKAGES_DIR}/zope/interface/*.txt"
+FILES_${PN}-tests = " \
+        ${PYTHON_SITEPACKAGES_DIR}/zope/interface/tests \
+        ${PYTHON_SITEPACKAGES_DIR}/zope/interface/common/tests \
+"





More information about the Openembedded-commits mailing list