Skip to contentSkip to conversation

python-io: Add runtime dependency on contextlib

PATCH In review Ash Charles 2 participants 4 messages Jul 7, 2015 – Jul 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-io: Add runtime dependency on contextlib

The python-io package includes ssl.py module which imports the contextlib library.

This applied to Python 2.7.9 but not 3.3.

---
 meta/recipes-devtools/python/python-2.7-manifest.inc | 2 +-
 scripts/contrib/python/generate-manifest-2.7.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python-2.7-manifest.inc +1 -1
index 9ba9c7f..dd8d825 100644
@@ -130,7 +130,7 @@ RDEPENDS_${PN}-importlib="${PN}-core"
 FILES_${PN}-importlib="${libdir}/python2.7/importlib "
 
 SUMMARY_${PN}-io="Python low-level I/O"
-RDEPENDS_${PN}-io="${PN}-core ${PN}-math ${PN}-textutils ${PN}-netclient"
+RDEPENDS_${PN}-io="${PN}-core ${PN}-math ${PN}-textutils ${PN}-netclient ${PN}-contextlib"
 FILES_${PN}-io="${libdir}/python2.7/lib-dynload/_socket.so ${libdir}/python2.7/lib-dynload/_io.so ${libdir}/python2.7/lib-dynload/_ssl.so ${libdir}/python2.7/lib-dynload/select.so ${libdir}/python2.7/lib-dynload/termios.so ${libdir}/python2.7/lib-dynload/cStringIO.so ${libdir}/python2.7/pipes.* ${libdir}/python2.7/socket.* ${libdir}/python2.7/ssl.* ${libdir}/python2.7/tempfile.* ${libdir}/python2.7/StringIO.* ${libdir}/python2.7/io.* ${libdir}/python2.7/_pyio.* "
 
 SUMMARY_${PN}-json="Python JSON support"
scripts/contrib/python/generate-manifest-2.7.py +1 -1
index a368c8a..936522e 100755
@@ -275,7 +275,7 @@ if __name__ == "__main__":
     m.addPackage( "${PN}-image", "Python graphical image handling", "${PN}-core",
     "colorsys.* imghdr.* lib-dynload/imageop.so lib-dynload/rgbimg.so" )
 
-    m.addPackage( "${PN}-io", "Python low-level I/O", "${PN}-core ${PN}-math ${PN}-textutils ${PN}-netclient",
+    m.addPackage( "${PN}-io", "Python low-level I/O", "${PN}-core ${PN}-math ${PN}-textutils ${PN}-netclient ${PN}-contextlib",
     "lib-dynload/_socket.so lib-dynload/_io.so lib-dynload/_ssl.so lib-dynload/select.so lib-dynload/termios.so lib-dynload/cStringIO.so " +
     "pipes.* socket.* ssl.* tempfile.* StringIO.* io.* _pyio.*" )
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 2 lines · Ash Charles

This applied to Python 2.7.9 but not 3.3.

Do you mean this isn't applicable to python 3.3 or you haven't checked with 3.3?

Ross

#2 lore raw
Quoted 8 lines · Ross
Quoted 2 lines · Ash Charles

This applied to Python 2.7.9 but not 3.3.

Do you mean this isn't applicable to python 3.3 or you haven't checked

with 3.3?
It is not applicable to 3.3.

Ash

#3 lore raw
Quoted 2 lines · Ash Charles

It is not applicable to 3.3

Thanks for the clarification.

Ross