You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Quote all files if original RECORD had all files quoted (#3515)
When patching a single file in Pytorch, repack_whl.py will print over
20k lines of RECORD.patch. The reason is that the original RECORD has
all filenames quoted for some reason, but the automatically generated
one quotes only when required (such as commas in file names, see
#2269).
This PR refactors the wheelmaker.py to still use the csv.writer to
auto-quote, but adds an additional detection for forced quote usage.
This makes the RECORD.patch match intuitive expectations of what could
change.
There are some relevant existing tests in examples/wheel/wheel_test.py
and tests/whl_filegroup/extract_wheel_files_test.py
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
0 commit comments