summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/distutils.bbclass9
-rw-r--r--meta/classes/distutils3.bbclass1
2 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index 3cf1d6b786..e7d48ab907 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -9,6 +9,13 @@ DISTUTILS_INSTALL_ARGS ?= "--root=${D} \
9 --install-lib=${PYTHON_SITEPACKAGES_DIR} \ 9 --install-lib=${PYTHON_SITEPACKAGES_DIR} \
10 --install-data=${datadir}" 10 --install-data=${datadir}"
11 11
12distutils_do_configure() {
13 if [ "${CLEANBROKEN}" != "1" ] ; then
14 NO_FETCH_BUILD=1 \
15 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean ${DISTUTILS_BUILD_ARGS}
16 fi
17}
18
12distutils_do_compile() { 19distutils_do_compile() {
13 NO_FETCH_BUILD=1 \ 20 NO_FETCH_BUILD=1 \
14 STAGING_INCDIR=${STAGING_INCDIR} \ 21 STAGING_INCDIR=${STAGING_INCDIR} \
@@ -80,6 +87,6 @@ distutils_do_install() {
80 fi 87 fi
81} 88}
82 89
83EXPORT_FUNCTIONS do_compile do_install 90EXPORT_FUNCTIONS do_configure do_compile do_install
84 91
85export LDSHARED="${CCLD} -shared" 92export LDSHARED="${CCLD} -shared"
diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass
index d01d9d78d5..1d0c54a513 100644
--- a/meta/classes/distutils3.bbclass
+++ b/meta/classes/distutils3.bbclass
@@ -12,6 +12,7 @@ DISTUTILS_INSTALL_ARGS ?= "--root=${D} \
12 12
13distutils3_do_configure() { 13distutils3_do_configure() {
14 if [ "${CLEANBROKEN}" != "1" ] ; then 14 if [ "${CLEANBROKEN}" != "1" ] ; then
15 NO_FETCH_BUILD=1 \
15 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean ${DISTUTILS_BUILD_ARGS} 16 ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean ${DISTUTILS_BUILD_ARGS}
16 fi 17 fi
17} 18}