[meta-virtualization] [m-c-s][PATCH 01/21] python-pbr: Error fix for recipes depend on python-pbr
Li Xin
lixin.fnst at cn.fujitsu.com
Mon Jan 4 18:01:00 PST 2016
If you bitbake recipes which depends on python-pbr 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/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-pbr_1.4.0.bb | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb b/meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb
index 273fdd4..98c76e6 100644
--- a/meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb
@@ -25,3 +25,13 @@ DEPENDS += " \
# RDEPENDS_default:
RDEPENDS_${PN} += " \
"
+
+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 meta-virtualization
mailing list