[meta-virtualization] [m-c-s][PATCH 1/2] python-vcversioner: Error fix recipes depend on python-vcversioner
Li Xin
lixin.fnst at cn.fujitsu.com
Mon Jan 4 18:08:49 PST 2016
If you bitbake recipes which depends on python-vcversioner such as
python-jsonschema. And also your network is not very well.
Error 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>
---
.../recipes-devtools/python/python-vcversioner_2.14.0.0.bb | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta-openstack/recipes-devtools/python/python-vcversioner_2.14.0.0.bb b/meta-openstack/recipes-devtools/python/python-vcversioner_2.14.0.0.bb
index 2fe96ab..50e48bb 100644
--- a/meta-openstack/recipes-devtools/python/python-vcversioner_2.14.0.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-vcversioner_2.14.0.0.bb
@@ -14,3 +14,12 @@ SRC_URI[sha256sum] = "acd43686e92e6c8bbeb4f2eef54408567a7adea9692fa72d591eec5357
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit setuptools
+
+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}/vcversioner*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
--
1.8.4.2
More information about the meta-virtualization
mailing list