[oe] [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1

Li Xin lixin.fnst at cn.fujitsu.com
Mon Jan 4 10:12:36 UTC 2016


If you bitbake recipes which depends on python-pyasn1 such as
python-cryptography. And also your network is not very well.
Error will occur as following:
   Download error on https://pypi.python.org/simple/pyasn1/:
   [Errno -5] No address associated with hostname -- Some packages may not be found!
    Couldn't find index page for 'pyasn1' (maybe misspelled?)
    No local packages or download links found for pyasn1
So add do_compile_append() to fix it.

Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
---
 meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb b/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
index 0fe6909..5259b1c 100644
--- a/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
+++ b/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
@@ -14,3 +14,12 @@ S = "${WORKDIR}/pyasn1-${PV}"
 inherit setuptools
 
 RDEPENDS_${PN} += "python-lang python-shell"
+
+do_compile_append() {
+    export BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
+    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+
+do_install_append() {
+    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
-- 
1.8.4.2






More information about the Openembedded-devel mailing list