Skip to contentSkip to conversation

sip: Split python into a new package for runtime support.

PATCH New Philip Balister 1 participant 2 messages Mar 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sip: Split python into a new package for runtime support.

The package is named python-sip for backwards compatibility.

---
 meta-oe/recipes-extended/sip/sip_4.16.4.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/sip/sip_4.16.4.bb +3 -1
index 607ace6..780ccdc 100644
@@ -14,6 +14,8 @@ SRC_URI[sha256sum] = "ceda443fc5e129e67a067e2cd7b73ff037f8b10b50e407baa2b1d9f219
 
 BBCLASSEXTEND = "native"
 
+PACKAGES += "python-sip"
+
 inherit qmake2 python-dir pythonnative distro_features_check
 # depends on qt4-x11-free
 REQUIRED_DISTRO_FEATURES = "x11"
@@ -47,6 +49,6 @@ do_install() {
     oe_runmake install
 }
 
-FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages/"
+FILES_python-${PN} = "${libdir}/${PYTHON_DIR}/site-packages/"
 FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug"
 
Signature · 1 line
2.1.0
#1 lore raw

PATCH 2/2 python-pyqt : Move RDEPENDS on python-sip to PyQT.

python-sip has the runtime support for PyQT. Also drop the need for anki to RDEPEND on python-sip.

---
 meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb | 2 +-
 meta-oe/recipes-extended/anki/anki_0.4.3.bb           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/python/python-pyqt_4.11.3.bb +1 -1
index 989f2cf..160a5d5 100644
@@ -49,7 +49,7 @@ do_install() {
      oe_runmake install
 }
 
-RDEPENDS_${PN} = "python-core"
+RDEPENDS_${PN} = "python-core python-sip"
 
 FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages ${datadir}/sip/PyQt4/"
 FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*/.debug/"
meta-oe/recipes-extended/anki/anki_0.4.3.bb +1 -1
index d441a70..61e063d 100644
@@ -1,4 +1,4 @@
 require ${PN}-${PV}.inc
 
-RDEPENDS_${PN} = "python-pyqt sip libanki"
+RDEPENDS_${PN} = "python-pyqt libanki"
 RRECOMMENDS_${PN} = "virtual-japanese-font"
Signature · 1 line
2.1.0