Hi, i did emerge -C =python-2.2* to remove python2.2.,but /usr/lib/python2.2/ is far away from empty. it still contains all the .pyc and .pyo files. (qpkg -f says they don't belong to a package). pls make sure these files get removed as well when unmerging python.
those files were created in real time, not by the original package
but they are senseless without python and should be removed...
.pyc and .pyo cleaning has been implemented for python-2.3 in portage, so it will be fixed in the future. but afaik, python-2.2.3-r5 has this as well, which version of python are you using?
actually, i just noticed some anomalies with the python_mod_cleanup() with 2.2. can you just try doing: ebuild /usr/portage/dev-lang/python/python-2.2.3-r5.ebuild postrm
alright, i think i've nailed down the problem. it only cleaned up /usr/lib/python2.2/site-packages and not /usr/lib/python2.2 itself. should be fixed in -r5 now. you can fix the problem locally by syncing and then running that ebuild command i mentioned. otherwise, it'll happen automatically for future users now. thanks for your report.