WheelRecord should prohibit adding directory entries.
Whether the entries for them should be added is not explicitly specified in the specs, but generally they are omitted by all of the tools. Introduce a default skipdir arg to WheelFile write methods that make them skip directories.
The specification at https://packaging.python.org/specifications/recording-installed-packages/#the-record-file specifically states that
RECORD
should not contain entries related to directories. Currently, allwrite
methods ofWheelFile
inadvertently add them.WheelRecord
should prohibit adding directory entries.Whether the entries for them should be added is not explicitly specified in the specs, but generally they are omitted by all of the tools. Introduce a default
skipdir
arg toWheelFile
write methods that make them skip directories.See pypa/pip#10118.