python-setuptools 0.6c6 add -native package, fix dependencies, make it a non-native...
authorMichael Lauer <mickey@vanille-media.de>
Thu, 1 May 2008 10:28:12 +0000 (10:28 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Thu, 1 May 2008 10:28:12 +0000 (10:28 +0000)
classes/setuptools.bbclass
packages/python/python-setuptools-native_0.6c6.bb [new file with mode: 0644]
packages/python/python-setuptools_0.6c6.bb

index 17c039b..ced9509 100644 (file)
@@ -1,6 +1,6 @@
 inherit distutils
 
-DEPENDS += "python-setuptools"
+DEPENDS += "python-setuptools-native"
 
 DISTUTILS_INSTALL_ARGS = "--root=${D} \
     --single-version-externally-managed \
diff --git a/packages/python/python-setuptools-native_0.6c6.bb b/packages/python/python-setuptools-native_0.6c6.bb
new file mode 100644 (file)
index 0000000..1b9f909
--- /dev/null
@@ -0,0 +1,8 @@
+require python-setuptools_${PV}.bb
+
+DEPENDS = "python-native"
+
+do_stage() {
+    BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
+      ${STAGING_BINDIR_NATIVE}/python setup.py install
+}
index ef56b9b..721b299 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://cheeseshop.python.org/pypi/setuptools"
 SECTION = "devel/python"
 PRIORITY = "optional"
 LICENSE = "MIT-like"
-RDEPENDS = "python-core python-zlib"
+RDEPENDS = "python-distutils python-compression"
 SRCNAME = "setuptools"
 PR = "ml1"
 
@@ -15,8 +15,3 @@ inherit distutils
 do_install_prepend() {
     install -d ${D}/${libdir}/${PYTHON_DIR}/site-packages
 }
-
-do_stage() {
-    BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
-      ${STAGING_BINDIR_NATIVE}/python setup.py install 
-}