All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir
@ 2019-12-16 19:48 Asaf Kahlon
  2019-12-22 13:42 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Asaf Kahlon @ 2019-12-16 19:48 UTC (permalink / raw)
  To: buildroot

scandir is a runtime dependency of pathlib2.

Signed-off-by: Asaf Kahlon <asafka7@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
 	select BR2_PACKAGE_PYTHON_SIX # runtime
 	help
 	  Object-oriented filesystem paths.
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir
  2019-12-16 19:48 [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir Asaf Kahlon
@ 2019-12-22 13:42 ` Thomas Petazzoni
  2019-12-22 17:39   ` Asaf Kahlon
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2019-12-22 13:42 UTC (permalink / raw)
  To: buildroot

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

> scandir is a runtime dependency of pathlib2.
> 
> Signed-off-by: Asaf Kahlon <asafka7@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir
  2019-12-22 13:42 ` Thomas Petazzoni
@ 2019-12-22 17:39   ` Asaf Kahlon
  2020-02-17 21:37     ` Conrad Ratschan
  0 siblings, 1 reply; 4+ messages in thread
From: Asaf Kahlon @ 2019-12-22 17:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, Dec 22, 2019 at 3:42 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Mon, 16 Dec 2019 21:48:15 +0200
> Asaf Kahlon <asafka7@gmail.com> wrote:
>
> > scandir is a runtime dependency of pathlib2.
> >
> > Signed-off-by: Asaf Kahlon <asafka7@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 ?

Yeah that's true, but pathlib2 can be chosen only for python 2,
so we can say for sure it's needed.

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

Regards,
Asaf.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir
  2019-12-22 17:39   ` Asaf Kahlon
@ 2020-02-17 21:37     ` Conrad Ratschan
  0 siblings, 0 replies; 4+ messages in thread
From: Conrad Ratschan @ 2020-02-17 21:37 UTC (permalink / raw)
  To: buildroot

Asaf, All,

On Sun, Dec 22, 2019 at 11:39 AM Asaf Kahlon <asafka7@gmail.com> wrote:
>
> Yeah that's true, but pathlib2 can be chosen only for python 2,
> so we can say for sure it's needed.

I can confirm that pathlib2 will crash on first invocation when using
python2 if BR2_PACKAGE_PYTHON_SCANDIR is not enabled.

Thanks,

Conrad
-- 
Conrad Ratschan | Software Engineer | Commercial Avionics
COLLINS AEROSPACE
400 Collins Road NE, Cedar Rapids, IA 52498, USA
conrad.ratschan at collins.com | collinsaerospace.com

CONFIDENTIALITY WARNING: This message may contain proprietary and/or
privileged information of Collins Aerospace and its affiliated
companies. If you are not the intended recipient, please 1) Do not
disclose, copy, distribute or use this message or its contents. 2)
Advise the sender by return email. 3) Delete all copies (including all
attachments) from your computer. Your cooperation is greatly
appreciated.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-17 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16 19:48 [Buildroot] [PATCH 1/1] package/python-pathlib2: select python-scandir Asaf Kahlon
2019-12-22 13:42 ` Thomas Petazzoni
2019-12-22 17:39   ` Asaf Kahlon
2020-02-17 21:37     ` Conrad Ratschan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.