python: Avoid exceeding command-line length limit
commit006c4dfede96091f5bed622c17946cbec067347f
authorMathieu Lirzin <mthl@gnu.org>
Sat, 3 Feb 2018 23:09:31 +0000 (4 00:09 +0100)
committerMathieu Lirzin <mthl@gnu.org>
Sun, 18 Feb 2018 13:01:58 +0000 (18 14:01 +0100)
tree02cef7933624146ab2a25b50fd952f5c28562f1c
parent903a80e0def90b88c1e4eead353af126a31a5422
python: Avoid exceeding command-line length limit

With Python implementations following PEP-3174, a large number of files
are installed in the ‘__pycache__’ directory.  As a consequence
“t/instmany-python.sh” test was failing due to the
‘uninstall-pythonPYTHON’ target deleting installed files in a single
‘rm’ command.  Doing that in multiple steps avoids exceeding the
command-line length limit.  This fixes bug#30335.

* lib/am/python.am (uninstall-%DIR%PYTHON): For byte-compiled files
installed in '__pycache__' directory, uninstall them by batch of 40.
[?FIRST?] (am__pep3147_tweak): Adapt.
lib/am/python.am