Skip to contentSkip to conversation

python-feedparser: Changed from distutils to setuptools

PATCH New Mihai Prica 1 participant 3 messages May 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python-feedparser: Changed from distutils to setuptools

This package uses setuptools not distutils.

---
 .../python/python-feedparser_5.1.3.bb              |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb +1 -1
index 38cd53f..92d5568 100644
@@ -10,5 +10,5 @@ SRC_URI[sha256sum] = "7f6507d400d07edfd1ea8205da36808009b0c539f5b8a6e0ab54337b95
 
 S = "${WORKDIR}/feedparser-${PV}"
 
-inherit distutils
+inherit setuptools
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/3 python-sqlalchemy: update to 0.7.9

---
 ...alchemy_0.7.1.bb => python-sqlalchemy_0.7.9.bb} |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
 rename meta-oe/recipes-devtools/python/{python-sqlalchemy_0.7.1.bb => python-sqlalchemy_0.7.9.bb} (59%)
meta-oe/recipes-devtools/python/python-sqlalchemy_0.7.9.bb renamed from meta-oe/recipes-devtools/python/python-sqlalchemy_0.7.1.bb +5 -6
similarity index 59%
rename from meta-oe/recipes-devtools/python/python-sqlalchemy_0.7.1.bb
rename to meta-oe/recipes-devtools/python/python-sqlalchemy_0.7.9.bb
index 9c7bd37..09c9312 100644
@@ -1,16 +1,15 @@
 DESCRIPTION = "Python SQL toolkit and Object Relational Mapper that gives \
 application developers the full power and flexibility of SQL"
 HOMEPAGE = "http://www.sqlalchemy.org/"
-LICENSE = "MIT"         
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e88f48967a8bd1fe88f5425f7e659dbf"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=baffc5e5f4804c92fc9be155fed70d41"
 RDEPENDS_${PN} += "python-numbers"
-PR = "r2"
+PR = "r0"
 
 SRCNAME = "SQLAlchemy"
 SRC_URI = "${SOURCEFORGE_MIRROR}/sqlalchemy/${SRCNAME}-${PV}.tar.gz"
-SRC_URI[md5sum] = "76e2e1e48b8047f1ca7023f143374aef"
-SRC_URI[sha256sum] = "eedd2d63d6404d9bbe3c4c6a63a5442d2c2650b862f9c10f721cfae4a735d05a"
-
+SRC_URI[md5sum] = "c4852d586d95a59fbc9358f4467875d5"
+SRC_URI[sha256sum] = "f7a305ad122144f364ce09a2d9ed5159d5f46ec43650653593e7dfa05d3294a1"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 3/3 mysql-python: Added recipe for mysql-python

In reply to Mihai Prica

This package provides an interface to MySQL for Python.

---
 .../mysql/mysql-python/remove-distribute.patch     |   17 +++++++++++++++++
 .../recipes-support/mysql/mysql-python_1.2.4.bb    |   18 ++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 meta-oe/recipes-support/mysql/mysql-python/remove-distribute.patch
 create mode 100644 meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb
meta-oe/recipes-support/mysql/mysql-python/remove-distribute.patch new file +17 -0
new file mode 100644
index 0000000..0ce750d
@@ -0,0 +1,17 @@
+Upstream-Status: Innapropriate
+
+Index: MySQL-python-1.2.4/setup.py
+===================================================================
+--- MySQL-python-1.2.4.orig/setup.py
++++ MySQL-python-1.2.4/setup.py
+@@ -3,8 +3,8 @@
+ import os
+ import sys
+ 
+-from distribute_setup import use_setuptools
+-use_setuptools()
++#from distribute_setup import use_setuptools
++#use_setuptools()
+ from setuptools import setup, Extension
+ 
+ if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb new file +18 -0
new file mode 100644
index 0000000..37ad21c
@@ -0,0 +1,18 @@
+DESCRIPTION = "Python interface to MySQL"
+HOMEPAGE = "https://github.com/farcepest/MySQLdb1"
+SECTION = "devel/python"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+PR = "r0"
+SRCNAME = "MySQL-python"
+
+SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \
+           file://remove-distribute.patch"
+
+SRC_URI[md5sum] = "ddf2386daf10a97af115ffad2ed4a9a0"
+SRC_URI[sha256sum] = "e405f9d6be33923d428acaa4db4f4470427f1d15ea0d2d82a933449ace26bbd9"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
Signature · 1 line
1.7.9.5