-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Description
🐛 Describe the bug
I would like to make modifications to Source Distribution package to respect https://peps.python.org/pep-0517/
Our source packaging was initially introduced by #63022
and have not changed since then.
I would like to modify create-release yml to build sdist respecting PEP 0517:
https://github.com/pytorch/pytorch/blob/main/.github/workflows/create_release.yml#L68
PyPi documentation on generating sdist:
https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives
Currently if one tries to install the tar.gz file used in the release, we get something like this:
pip install pytorch-v2.6.0.tar.gz
Processing ./pytorch-v2.6.0.tar.gz
ERROR: Exception:
Traceback (most recent call last):
File "/Users/atalman/miniconda3/lib/python3.9/tarfile.py", line 2617, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/Users/atalman/miniconda3/lib/python3.9/tarfile.py", line 1295, in fromtarfile
obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
File "/Users/atalman/miniconda3/lib/python3.9/tarfile.py", line 1231, in frombuf
raise EmptyHeaderError("empty header")
tarfile.EmptyHeaderError: empty header
Versions
2.8.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status