diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/distutils.bbclass | 9 | ||||
-rw-r--r-- | meta/classes/distutils3.bbclass | 1 |
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 | ||
12 | distutils_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 | |||
12 | distutils_do_compile() { | 19 | distutils_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 | ||
83 | EXPORT_FUNCTIONS do_compile do_install | 90 | EXPORT_FUNCTIONS do_configure do_compile do_install |
84 | 91 | ||
85 | export LDSHARED="${CCLD} -shared" | 92 | export 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 | ||
13 | distutils3_do_configure() { | 13 | distutils3_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 | } |