Discussion:
__pycache__ directories and distcleancheck
Adam Mercer
2018-06-13 18:54:53 UTC
Permalink
Hi

We've recently updated our code to support Python3 and are running
into a problem with __pycache__ directories being leftover in the
build directory after a distclean. Is the appropriate thing to do here
simply to list the files in DISTCLEANFILES or is there a better way?

Cheers

Adam
Jim Meyering
2018-06-13 19:29:48 UTC
Permalink
Thanks for the report. Would you please create a minimal set-up to
demonstrate the problem? That will probably expedite a proper fix.
Post by Adam Mercer
Hi
We've recently updated our code to support Python3 and are running
into a problem with __pycache__ directories being leftover in the
build directory after a distclean. Is the appropriate thing to do here
simply to list the files in DISTCLEANFILES or is there a better way?
Cheers
Adam
Adam Mercer
2018-06-15 04:50:55 UTC
Permalink
Thanks for the report. Would you please create a minimal set-up to demonstrate the problem? That will probably expedite a proper fix.
I will, our project can in no way be considered minimal so I'll try
and create a very small example. It may take me a week or so as I'm
swamped at the moment. For the time being I added:

clean-local:
-find . -name "__pycache__" -type d -exec rm -r "{}" \;

which works around the issue and added a big FIXME.

Cheers

Adam

Loading...