[OE-core] [PATCH 2/2] distutils: clean the build tree in do_configure
Burton, Ross
ross.burton at intel.com
Mon Jul 9 09:38:53 UTC 2018
Sorry about that, I'll run a build against all of meta-python now.
Ross
On 8 July 2018 at 01:57, Khem Raj <raj.khem at gmail.com> wrote:
> For the record this breaks few recipes in meta-python
>
> meta-python/recipes-devtools/python/python3-lxml_4.2.3.bb
> meta-python/recipes-devtools/python/python3-pandas_0.23.1.bb
> meta-python/recipes-devtools/python/python3-protobuf_3.6.0.bb
>
> It would be better if meta-python was exercised as testing for such
> changes in oe-core for better coverage.
> On Thu, Jul 5, 2018 at 8:58 AM Ross Burton <ross.burton at intel.com> wrote:
>>
>> base_do_configure() tries to do "make clean" if there is a Makefile present.
>> For most recipes using distutils there is not a Makefile, but we do know that
>> "setup.py clean" will work so call that instead.
>>
>> Signed-off-by: Ross Burton <ross.burton at intel.com>
>> ---
>> meta/classes/distutils3.bbclass | 8 +++++++-
>> 1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass
>> index 6c303068820..99ad64d287d 100644
>> --- a/meta/classes/distutils3.bbclass
>> +++ b/meta/classes/distutils3.bbclass
>> @@ -8,6 +8,12 @@ DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \
>> DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
>> --install-data=${D}/${datadir}"
>>
>> +distutils3_do_configure() {
>> + if [ "${CLEANBROKEN}" != "1" ] ; then
>> + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean
>> + fi
>> +}
>> +
>> distutils3_do_compile() {
>> STAGING_INCDIR=${STAGING_INCDIR} \
>> STAGING_LIBDIR=${STAGING_LIBDIR} \
>> @@ -71,6 +77,6 @@ distutils3_do_install() {
>> }
>> distutils3_do_install[vardepsexclude] = "MACHINE"
>>
>> -EXPORT_FUNCTIONS do_compile do_install
>> +EXPORT_FUNCTIONS do_configure do_compile do_install
>>
>> export LDSHARED="${CCLD} -shared"
>> --
>> 2.11.0
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list