[meta-virtualization] [m-c-s][PATCH 06/21] python-heatclient: Error fix

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


python-heatclient depends on python-pbr, and will download pbr modules
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/pbr/:
  [Errno -5] No address associated with hostname -- Some packages may not be found!
  Couldn't find index page for 'pbr' (maybe misspelled?)
  No local packages or download links found for pbr

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

diff --git a/meta-openstack/recipes-devtools/python/python-heatclient_git.bb b/meta-openstack/recipes-devtools/python/python-heatclient_git.bb
index 10428c2..94911cd 100644
--- a/meta-openstack/recipes-devtools/python/python-heatclient_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-heatclient_git.bb
@@ -33,6 +33,13 @@ inherit setuptools
 PACKAGECONFIG ?= "bash-completion"
 PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash-completion"
 
+do_compile_prepend() {
+    install -d ${S}/.eggs
+    if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pbr*.egg ]; then
+        cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pbr*.egg ${S}/.eggs/
+    fi
+}
+
 do_install_append() {
 	install -d ${D}/${sysconfdir}/bash_completion.d
 	install -m 664 ${S}/tools/heat.bash_completion ${D}/${sysconfdir}/bash_completion.d
-- 
1.8.4.2





More information about the meta-virtualization mailing list