Use PYTHON_SITEPACKAGES_DIR insted of hard-coded *site-packages*

For thoese recipes that are inheriting python*-dir.bbclass, there is
already a PYTHON_SITEPACKAGES_DIR present, use that definition replacing
redundant "${libdir}/python*/site-packages".

(From OE-Core rev: e7d842673952aa4aaa141f64958bc1344dbe8210)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ming Liu
2016-08-09 10:01:41 +02:00
committed by Richard Purdie
parent 92f505b016
commit bba1b911c8
9 changed files with 41 additions and 41 deletions

View File

@@ -17,5 +17,5 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/setuptools"
S = "${WORKDIR}/${SRCNAME}-${PV}"
do_install_prepend() {
install -d ${D}/${libdir}/${PYTHON_DIR}/site-packages
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
}