[oe-commits] org.oe.dev python 2.5 improve pysqlite2|3 packaging. Patch based on work by Aloisios Almeida.

mickeyl commit oe at amethyst.openembedded.net
Fri Mar 21 23:32:19 UTC 2008


python 2.5 improve pysqlite2|3 packaging. Patch based on work by Aloisios Almeida.

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 281a5681239793312291488e7b216ecbdfce9b33
ViewMTN: http://monotone.openembedded.org/revision/info/281a5681239793312291488e7b216ecbdfce9b33
Files:
1
contrib/python/generate-manifest-2.5.py
packages/python/python-2.5-manifest.inc
packages/python/python-pysqlite2_2.4.0.bb
Diffs:

#
# mt diff -re7f56777755e18d1ce874d8f1f99893a3d71f85d -r281a5681239793312291488e7b216ecbdfce9b33
#
#
#
# patch "contrib/python/generate-manifest-2.5.py"
#  from [52d051dca521630ef1ef4e37f1e346503652bcae]
#    to [16126e312062487bf91b7314da2178b5146d04f0]
# 
# patch "packages/python/python-2.5-manifest.inc"
#  from [e0702c0a123bad512850c3846b66ef177cad94ad]
#    to [173662ecbf40b201a0b75f4180dd8d97c2f50227]
# 
# patch "packages/python/python-pysqlite2_2.4.0.bb"
#  from [617a7751e48a571c7049118a1ddff35a47317af5]
#    to [439b12ac31b2ea0c8628abd2ba75d8468432f5fb]
#
============================================================
--- contrib/python/generate-manifest-2.5.py	52d051dca521630ef1ef4e37f1e346503652bcae
+++ contrib/python/generate-manifest-2.5.py	16126e312062487bf91b7314da2178b5146d04f0
@@ -294,9 +294,12 @@ if __name__ == "__main__":
     m.addPackage( 0, "python-subprocess", "Python Subprocess Support", "python-core python-io python-re python-fcntl python-pickle",
     "subprocess.*" )
 
-    m.addPackage( 1, "python-sqlite3", "Python Sqlite3 Database Support", "python-core",
-    "lib-dynload/_sqlite3.so sqlite3" ) # package
+    m.addPackage( 2, "python-sqlite3", "Python Sqlite3 Database Support", "python-core python-datetime python-lang python-crypt python-io python-threading python-zlib",
+    "lib-dynload/_sqlite3.so sqlite3/dbapi2.* sqlite3/__init__.*" )
 
+    m.addPackage( 0, "python-sqlite3-tests", "Python Sqlite3 Database Support Tests", "python-core python-sqlite3",
+    "sqlite3/test" )
+
     m.addPackage( 0, "python-stringold", "Python String APIs [deprecated]", "python-core python-re",
     "lib-dynload/strop.so string.*" )
 
============================================================
--- packages/python/python-2.5-manifest.inc	e0702c0a123bad512850c3846b66ef177cad94ad
+++ packages/python/python-2.5-manifest.inc	173662ecbf40b201a0b75f4180dd8d97c2f50227
@@ -1,5 +1,5 @@
-#######################################################################################################################
-### AUTO-GENERATED by './contrib/python/generate-manifest-2.5.py' [(C) 2002-2008 Michael 'Mickey' Lauer <mlauer at vanille-media.de>] on Thu Mar  6 18:04:21 2008
+########################################################################################################################
+### AUTO-GENERATED by './generate-manifest-2.5.py' [(C) 2002-2008 Michael 'Mickey' Lauer <mlauer at vanille-media.de>] on Fri Mar 21 18:43:05 2008
 ###
 ### Visit THE Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy
 ###
@@ -8,9 +8,9 @@
 ########################################################################################################################
  
 
-PROVIDES+="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
+PROVIDES+="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-tests python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-sqlite3-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
 
-PACKAGES="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
+PACKAGES="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-tests python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-sqlite3-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
 
 DESCRIPTION_python-profile="Python Basic Profiling Support"
 PR_python-profile="ml0"
@@ -97,6 +97,11 @@ FILES_python-image="${libdir}/python2.5/
 RDEPENDS_python-image="python-core"
 FILES_python-image="${libdir}/python2.5/colorsys.* ${libdir}/python2.5/imghdr.* ${libdir}/python2.5/lib-dynload/imageop.so ${libdir}/python2.5/lib-dynload/rgbimg.so "
 
+DESCRIPTION_python-tests="Python Tests"
+PR_python-tests="ml0"
+RDEPENDS_python-tests="python-core"
+FILES_python-tests="${libdir}/python2.5/test "
+
 DESCRIPTION_python-core-dbg="Python core module debug information"
 PR_python-core-dbg="ml0"
 RDEPENDS_python-core-dbg="python-core"
@@ -213,14 +218,14 @@ DESCRIPTION_python-sqlite3="Python Sqlit
 FILES_python-mime="${libdir}/python2.5/mimetools.* ${libdir}/python2.5/uu.* ${libdir}/python2.5/quopri.* ${libdir}/python2.5/rfc822.* "
 
 DESCRIPTION_python-sqlite3="Python Sqlite3 Database Support"
-PR_python-sqlite3="ml1"
-RDEPENDS_python-sqlite3="python-core"
-FILES_python-sqlite3="${libdir}/python2.5/lib-dynload/_sqlite3.so ${libdir}/python2.5/sqlite3 "
+PR_python-sqlite3="ml2"
+RDEPENDS_python-sqlite3="python-core python-datetime python-lang python-crypt python-io python-threading python-zlib"
+FILES_python-sqlite3="${libdir}/python2.5/lib-dynload/_sqlite3.so ${libdir}/python2.5/sqlite3/dbapi2.* ${libdir}/python2.5/sqlite3/__init__.* "
 
-DESCRIPTION_python-tests="Python Tests"
-PR_python-tests="ml0"
-RDEPENDS_python-tests="python-core"
-FILES_python-tests="${libdir}/python2.5/test "
+DESCRIPTION_python-sqlite3-tests="Python Sqlite3 Database Support Tests"
+PR_python-sqlite3-tests="ml0"
+RDEPENDS_python-sqlite3-tests="python-core python-sqlite3"
+FILES_python-sqlite3-tests="${libdir}/python2.5/sqlite3/test "
 
 DESCRIPTION_python-unittest="Python Unit Testing Framework"
 PR_python-unittest="ml0"
============================================================
--- packages/python/python-pysqlite2_2.4.0.bb	617a7751e48a571c7049118a1ddff35a47317af5
+++ packages/python/python-pysqlite2_2.4.0.bb	439b12ac31b2ea0c8628abd2ba75d8468432f5fb
@@ -4,9 +4,10 @@ SRCNAME = "pysqlite"
 LICENSE = "BSD"
 DEPENDS = "sqlite3"
 SRCNAME = "pysqlite"
+PR = "ml1"
 
 SRC_URI = "http://initd.org/pub/software/pysqlite/releases/2.4/${PV}/${SRCNAME}-${PV}.tar.gz \
-	   file://fix-setup.patch;patch=1"
+           file://fix-setup.patch;patch=1"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
@@ -15,3 +16,17 @@ do_install_append() {
     install -d ${D}${datadir}/doc/
     mv ${D}${datadir}/pysqlite2-doc ${D}${datadir}/doc/${PN}
 }
+
+RDEPENDS = "\
+ python-datetime \
+ python-lang \
+ python-crypt \
+ python-io \
+ python-threading \
+ python-unittest \
+ python-zlib \
+"
+
+PACKAGES =+ "${PN}-tests"
+FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/pysqlite2/test"
+RDEPENDS_${PN}-tests = "${PN}"






More information about the Openembedded-commits mailing list