summaryrefslogtreecommitdiffstats
path: root/meta/classes/distutils.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/distutils.bbclass')
-rw-r--r--meta/classes/distutils.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index c2f74039cb..3cf1d6b786 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -4,8 +4,10 @@ DISTUTILS_BUILD_ARGS ?= ""
4DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" 4DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}"
5DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ 5DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \
6 --install-data=${STAGING_DATADIR}" 6 --install-data=${STAGING_DATADIR}"
7DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ 7DISTUTILS_INSTALL_ARGS ?= "--root=${D} \
8 --install-data=${D}/${datadir}" 8 --prefix=${prefix} \
9 --install-lib=${PYTHON_SITEPACKAGES_DIR} \
10 --install-data=${datadir}"
9 11
10distutils_do_compile() { 12distutils_do_compile() {
11 NO_FETCH_BUILD=1 \ 13 NO_FETCH_BUILD=1 \
@@ -35,7 +37,7 @@ distutils_do_install() {
35 STAGING_INCDIR=${STAGING_INCDIR} \ 37 STAGING_INCDIR=${STAGING_INCDIR} \
36 STAGING_LIBDIR=${STAGING_LIBDIR} \ 38 STAGING_LIBDIR=${STAGING_LIBDIR} \
37 PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ 39 PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \
38 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ 40 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_INSTALL_ARGS} || \
39 bbfatal_log "${PYTHON_PN} setup.py install execution failed." 41 bbfatal_log "${PYTHON_PN} setup.py install execution failed."
40 42
41 # support filenames with *spaces* 43 # support filenames with *spaces*