python-vcversioner: Error Fix for recipes depend on python-vcversioner.

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
So add do_compile_append() to fix it.

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Li xin 2015-12-30 12:01:50 +03:00 committed by Martin Jansa
parent a26902970c
commit fb1696372f

View File

@ -12,3 +12,12 @@ S = "${WORKDIR}/vcversioner-${PV}"
inherit setuptools 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}/
}