wheel: RECORD file broken when filename in the wheel contains a comma

Environment

pip version: 18.1 Python version: 3.7.1 OS: macOS 14.1 wheel: 0.32.3 Description

I have a package containing a datafile that has a comma in its file name. When creating a wheel and then installing that wheel the RECORD file contains two lines:

package/other,data.dat,sha256=9jljVen42HXtXHKL7kl6flBZmawA_EkJI0VxHGxlzOs,10 “package/other,data.dat”,

The first line is also present in the generated wheel file, the second is added by pip.

Expected behavior

I’d expect 1 line for the file. If PEP 372 is the specification for the format of wheels the RECORD file should be a CSV file and the correct line would be:

"package/other,data.dat",sha256=9jljVen42HXtXHKL7kl6flBZmawA_EkJI0VxHGxlzOs,10

This is a bug in wheel because it generates an invalid RECORD file in this case (one with an additional field), pip then adds a second line with the correct format.

How to Reproduce

I’ve attached an sdist that contains a datafile as described above.

simple-package-1.0.tar.gz

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (16 by maintainers)

Most upvoted comments

I’ll try to get this done on the coming weekend.