[OE-core] [PATCH v2] python/python3: Move test files to test package

Alexander Kanavin alex.kanavin at gmail.com
Fri Sep 14 16:48:49 UTC 2018


We should probably do another dig at ridding oe-core of py2 :)

Alex

2018-09-14 18:35 GMT+02:00 Alejandro Hernandez
<alejandro.enedino.hernandez-samaniego at xilinx.com>:
> Hey Ross,
>
>
> I believe that if we want to go with this approach we would need to add
> these packages as "special_packages" on the manifest script, that way the
> script will simply avoid checking dependencies for them and will pass them
> without modifications, this will also cause these packages to appear earlier
> on the list, it does require some tweaking because directories such as
> lib/python/email shouldnt be on the email package itself, so we would need
> to take out such directories from the packages and rerun the script, that
> will repopulate the email package (ad others) correctly  with the files
> needed instead of the directory, but to be quite honest it might be easier
> to go with the first approach and delete such files on do_install()
>
>
> Cheers,
>
> Alejandro
>
>
> On 9/13/2018 4:49 PM, Burton, Ross wrote:
>>
>> On 14 September 2018 at 00:30, Burton, Ross <ross.burton at intel.com> wrote:
>>>
>>> I suspect simply adding python3.5/*/test/ will catch the bulk of this
>>> now and in the future.
>>
>> Gave this a go and annoyingly the manifest generation must sort the
>> list because the glob works for everything apart from packages after
>> tests alphabetically, so the tkinter and unittest tests don't get
>> moved.
>>
>> I guess we could change the manifest to put the tests package at the
>> top of the list, and be sure to respect the order when generating the
>> lists.
>>
>> Ross
>
> --
> _______________________________________________
> 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