Closed
Description
Using pip 1.5rc1, Python 2.7 or 3.3:
When I install a wheel that contains some data files (files in "foo-1.0.data/"), pip writes entries for the new files into the installed RECORD, but it doesn't delete the old entries under "foo-1.0.data/". So there are entries in RECORD pointing to files that don't exist.
For example:
$ pip install aspen
$ grep "aspen-0.27.data" /usr/lib/python2.7/site-packages/aspen-0.27.dist-info/RECORD
aspen-0.27.data/scripts/thrash,sha256=2gvcGyPwuN3A3SxvG4R_7iRWfQYqtscCnx_nEW_RW8o,281
aspen-0.27.data/scripts/aspen,sha256=XRiuJ256dUoTP_Tv0YMpYi8phHrMLJkYiSJN4qApITU,279
aspen-0.27.data/scripts/fcgi_aspen,sha256=_v0TBkNG8oTP-FisQebXi-vktvz5WYxQDZJLt6_l9O0,289
Although pep 427 doesn't explicitly say anything about this situation, I think that RECORD should only list files that actually are installed on the system.