Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-24 Thread Andy Shevchenko
On Thu, Apr 24, 2025 at 11:07:05AM +0900, Akira Yokosawa wrote: > On Wed, 23 Apr 2025 19:31:36 +0300, Andy Shevchenko wrote: > > On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: > >> On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: > >>> On Mon, Apr 21, 2025 at 10:35:29AM -

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-24 Thread Mauro Carvalho Chehab
Em Thu, 24 Apr 2025 15:26:48 +0800 Mauro Carvalho Chehab escreveu: > Em Thu, 24 Apr 2025 11:07:05 +0900 > Akira Yokosawa escreveu: > > > On Wed, 23 Apr 2025 19:31:36 +0300, Andy Shevchenko wrote: > > > On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: > > >> On Tue, 22 Apr 2025

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-24 Thread Mauro Carvalho Chehab
Em Thu, 24 Apr 2025 11:07:05 +0900 Akira Yokosawa escreveu: > On Wed, 23 Apr 2025 19:31:36 +0300, Andy Shevchenko wrote: > > On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: > >> On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: > >>> On Mon, Apr 21, 2025 at 10:35:29AM

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Akira Yokosawa
On Wed, 23 Apr 2025 19:31:36 +0300, Andy Shevchenko wrote: > On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: >> On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: >>> On Mon, Apr 21, 2025 at 10:35:29AM -0600, Jonathan Corbet wrote: Dmitry Baryshkov writes: > > [...] >

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Mauro Carvalho Chehab
Em Mon, 21 Apr 2025 10:35:29 -0600 Jonathan Corbet escreveu: > Dmitry Baryshkov writes: > > > On Wed, Apr 16, 2025 at 03:51:03PM +0800, Mauro Carvalho Chehab wrote: > >> > >> As reported by Andy, the Kernel build system runs kernel-doc script for > >> DRM, > >> when W=1. Due to Python's nor

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Andy Shevchenko
On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: > On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: > > On Mon, Apr 21, 2025 at 10:35:29AM -0600, Jonathan Corbet wrote: > >> Dmitry Baryshkov writes: [...] > >> > Would it be possible to properly support O= and create pyc

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Akira Yokosawa
Hi Andy, On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: > On Mon, Apr 21, 2025 at 10:35:29AM -0600, Jonathan Corbet wrote: >> Dmitry Baryshkov writes: [...] >> > Would it be possible to properly support O= and create pyc / pycache >> > inside the object/output dir? >> >> I have to c

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-22 Thread Andy Shevchenko
On Mon, Apr 21, 2025 at 10:35:29AM -0600, Jonathan Corbet wrote: > Dmitry Baryshkov writes: > > On Wed, Apr 16, 2025 at 03:51:03PM +0800, Mauro Carvalho Chehab wrote: > >> > >> As reported by Andy, the Kernel build system runs kernel-doc script for > >> DRM, > >> when W=1. Due to Python's normal

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-21 Thread Jonathan Corbet
Dmitry Baryshkov writes: > On Wed, Apr 16, 2025 at 03:51:03PM +0800, Mauro Carvalho Chehab wrote: >> >> As reported by Andy, the Kernel build system runs kernel-doc script for DRM, >> when W=1. Due to Python's normal behavior, its JIT compiler will create >> a bytecode and store it under scripts

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-21 Thread Dmitry Baryshkov
On Wed, Apr 16, 2025 at 03:51:03PM +0800, Mauro Carvalho Chehab wrote: > > As reported by Andy, the Kernel build system runs kernel-doc script for DRM, > when W=1. Due to Python's normal behavior, its JIT compiler will create > a bytecode and store it under scripts/lib/*/__pycache__. > > As one

[PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-16 Thread Mauro Carvalho Chehab
As reported by Andy, the Kernel build system runs kernel-doc script for DRM, when W=1. Due to Python's normal behavior, its JIT compiler will create a bytecode and store it under scripts/lib/*/__pycache__. As one may be using O= and even having the sources on a read-only mount point, disable it