[oe-commits] [meta-openembedded] 21/26: python-six: Error fix for recipes depend on python-six

git at git.openembedded.org git at git.openembedded.org
Wed Jan 27 11:42:22 UTC 2016


martin_jansa pushed a commit to branch master
in repository meta-openembedded.

commit 6b4cee97597c0587cc83b787f036dbfa181915f2
Author: Li xin <lixin.fnst at cn.fujitsu.com>
AuthorDate: Mon Jan 4 13:12:37 2016 +0300

    python-six: Error fix for recipes depend on python-six
    
    If you bitbake recipes which depends on python-six 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/six/:
       [Errno -5] No address associated with hostname -- Some packages may not be found!
        Couldn't find index page for 'six' (maybe misspelled?)
        No local packages or download links found for six
    So add do_compile_append() to fix it.
    
    Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-python/recipes-devtools/python/python-six_1.9.0.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-six_1.9.0.bb b/meta-python/recipes-devtools/python/python-six_1.9.0.bb
index aa96dc9..c6575f3 100644
--- a/meta-python/recipes-devtools/python/python-six_1.9.0.bb
+++ b/meta-python/recipes-devtools/python/python-six_1.9.0.bb
@@ -6,3 +6,11 @@ SRC_URI[md5sum] = "476881ef4012262dfc8adc645ee786c4"
 SRC_URI[sha256sum] = "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
 
 inherit pypi
+
+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}/
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list