Re: __pycache__ directories (Re: Potential MBF: packages failing to build twice in a row)

2023-08-16 Thread Luca Boccassi
On Wed, 16 Aug 2023 at 09:43, Konstantin Demin wrote: > > I'd recommend to add in d/rules following variable: > > ```make > export PYTHONDONTWRITEBYTECODE=1 > ``` > > Optionally add this too: > > ```make > export PYTHONUNBUFFERED=1 > ``` > > Extra thing: > > ```make > define remove_pycache > > :

Re: __pycache__ directories (Re: Potential MBF: packages failing to build twice in a row)

2023-08-16 Thread Konstantin Demin
I'd recommend to add in d/rules following variable: ```make export PYTHONDONTWRITEBYTECODE=1 ``` Optionally add this too: ```make export PYTHONUNBUFFERED=1 ``` Extra thing: ```make define remove_pycache : # $(strip $(1)): remove Python cache find $(strip $(1))/ -name __pycache__ -type d

Re: __pycache__ directories (Re: Potential MBF: packages failing to build twice in a row)

2023-08-15 Thread Michael Biebl
Am 16.08.23 um 06:02 schrieb Paul Wise: On Mon, 2023-08-14 at 22:09 +0200, Michael Biebl wrote: I received a couple of bug reports against packages I (co) maintain regarding this issue and having a quick look, quite a few fail due to python scripts being run during the build and creating a

Re: __pycache__ directories (Re: Potential MBF: packages failing to build twice in a row)

2023-08-15 Thread Paul Wise
On Mon, 2023-08-14 at 22:09 +0200, Michael Biebl wrote: > I received a couple of bug reports against packages I (co) maintain > regarding this issue and having a quick look, quite a few fail due to > python scripts being run during the build and creating a __pycache__ > directory. I recommend