python: uninstall cater to PEP-3147
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 19 Nov 2012 19:16:47 +0000 (20:16 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 19 Nov 2012 21:58:37 +0000 (22:58 +0100)
commit3fea76478eb1364093804365904fdb3c1e5c93d2
tree82bc83caef43c4e31df19ef9dbf198c8d01e4733
parentcae0d860a5bce1593d1be0ce22f3dae81c825230
python: uninstall cater to PEP-3147

After recent commit commit v1.12.4-43-ge0e99ed, "python: improve
support for modern python (CPython 3.2 and PyPy)", the python install
rules have been made smart enough to install "*.pyc" byte-compiled
files according to PEP-3147 with modern (post-3.2) pythons.  However,
the uninstall rules hadn't been updated accordingly, causing leftover
files to remain around after "make uninstall", as well as failures in
"make distcheck".

* lib/am/python.am (am__pep3147_tweak): New internal macro, used
in ...
(uninstall-%DIR%PYTHON): ... the recipe of this target, which has
been adjusted to cater to PEP-3147

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/python.am