[meta-virtualization] [m-c-s][PATCH 2/2] python-jsonschema: Error Fix

Li Xin lixin.fnst at cn.fujitsu.com
Mon Jan 4 18:08:50 PST 2016


python-jsonschema depends on python-vcversioner,
And will download modules vcversioner in the step of do_compile.
If your network is not very well,errors will occur as following:
  Download error on https://pypi.python.org/simple/vcversioner/:
  [Errno -5] No address associated with hostname -- Some packages may not be found!
  Couldn't find index page for 'vcversioner' (maybe misspelled?)
  No local packages or download links found for vcversioner

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

diff --git a/meta-openstack/recipes-devtools/python/python-jsonschema_2.5.1.bb b/meta-openstack/recipes-devtools/python/python-jsonschema_2.5.1.bb
index a3a7ec0..c0b342e 100644
--- a/meta-openstack/recipes-devtools/python/python-jsonschema_2.5.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-jsonschema_2.5.1.bb
@@ -17,3 +17,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 inherit setuptools
 
 DEPENDS += "python-vcversioner"
+
+do_compile_prepend() {
+    install -d ${S}/.eggs
+    if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/vcversioner*.egg ]; then
+        install -m 0644 ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/vcversioner*.egg ${S}/.eggs/
+    fi
+}
-- 
1.8.4.2





More information about the meta-virtualization mailing list