Re: [OE-core] [PATCH] python3-nose: translate to python3 code before build

2021-11-09 Thread Yi Zhao
On 11/9/21 5:56 AM, Richard Purdie wrote: On Mon, 2021-11-08 at 14:55 +0800, Yi Zhao wrote: Setuptools has removed support for 2to3 during builds since version 58[1]. But the nose's setup.py relies on use_2to3 option in setuptools, it is failing an import and building without running 2to3 and g

Re: [OE-core] [PATCH] python3-nose: translate to python3 code before build

2021-11-08 Thread Richard Purdie
On Mon, 2021-11-08 at 14:55 +0800, Yi Zhao wrote: > Setuptools has removed support for 2to3 during builds since version > 58[1]. But the nose's setup.py relies on use_2to3 option in setuptools, > it is failing an import and building without running 2to3 and generating > valid python3 code. As a wor

[OE-core] [PATCH] python3-nose: translate to python3 code before build

2021-11-07 Thread Yi Zhao
Setuptools has removed support for 2to3 during builds since version 58[1]. But the nose's setup.py relies on use_2to3 option in setuptools, it is failing an import and building without running 2to3 and generating valid python3 code. As a workaround, we use command line 2to3 tool to translate to Pyt