[Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Dec 22 13:42:00 UTC 2019


On Mon, 16 Dec 2019 21:48:15 +0200
Asaf Kahlon <asafka7 at gmail.com> wrote:

> scandir is a runtime dependency of pathlib2.
> 
> Signed-off-by: Asaf Kahlon <asafka7 at gmail.com>
> ---
>  package/python-pathlib2/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/python-pathlib2/Config.in b/package/python-pathlib2/Config.in
> index e28de4c12e..ca948c271f 100644
> --- a/package/python-pathlib2/Config.in
> +++ b/package/python-pathlib2/Config.in
> @@ -1,6 +1,7 @@
>  config BR2_PACKAGE_PYTHON_PATHLIB2
>  	bool "python-pathlib2"
>  	depends on BR2_PACKAGE_PYTHON
> +	select BR2_PACKAGE_PYTHON_SCANDIR # runtime

I see this in the setup.py:

    extras_require={
        ':python_version<"3.5"': ['scandir'],
        },

Doesn't that mean that it is needed only if the Python version is < 3.5 ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list