Re: [PATCH 0/2] Move Python modules to tools/lib/python
From: Mauro Carvalho Chehab
Date: Tue Nov 18 2025 - 14:16:09 EST
Em Tue, 18 Nov 2025 09:27:05 -0700
Jonathan Corbet <corbet@xxxxxxx> escreveu:
> Jonathan Corbet <corbet@xxxxxxx> writes:
>
> > scripts/lib was always a bit of an awkward place for Python libraries; give
> > them a proper home under tools/lib/python. Put the modules from
> > tools/docs/lib there for good measure.
> >
> > The second patch ties them into a single package namespace. It would be
> > more aesthetically pleasing to add a kernel layer, so we could say:
> >
> > from kernel.kdoc import kdoc_parser
> >
> > ...and have the kernel-specific stuff clearly marked, but that means adding
> > an empty directory in the hierarchy, which isn't as pleasing.
> >
> > There are some other "Python library" directories hidden in the kernel
> > tree; we may eventually want to encourage them to move as well.
> >
> > Jonathan Corbet (2):
> > docs: Move the python libraries to tools/lib/python
> > docs: bring some order to our Python module hierarchy
>
> In the absence of complaints, I have applied these.
Sorry, I ended missing it. Looking at the changes, looks good to
to me.
I also tested building it and everything seems fine.
Thanks,
Mauro