Skip to content

Commit 6130f67

Browse files
authored
Merge pull request #2108 from pypa/ww/pax
sdist format: qualify pax compatibility
2 parents f4b5123 + fc1330a commit 6130f67

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎source/specifications/source-distribution-format.rst‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,19 @@ at their respective paths relative to the root directory of the sdist
7474
No other content of a sdist is required or defined. Build systems can store
7575
whatever information they need in the sdist to build the project.
7676

77-
The tarball must use the modern POSIX.1-2001 pax tar format, which specifies
78-
UTF-8 based file names. In particular, source distribution files must be readable
77+
The tarball MUST use the modern POSIX.1-2001 pax tar format, which specifies
78+
UTF-8 based file names. In particular, source distribution files MUST be readable
7979
using the standard library tarfile module with the open flag 'r:gz'.
8080

81+
The tarball MUST NOT use pax-style vendor extensions (such as ``SCHILY.xattr``
82+
or ``LIBARCHIVE.xattr``) for interoperability reasons.
83+
84+
Source distributions MUST NOT use non-pax features, even if those features are
85+
structurally compatible with the pax standard. Installers and other consumers MAY
86+
warn on source distributions that are not strictly pax-conforming.
87+
88+
Examples of non-pax features include GNU-style or legacy ("V7")-style tar members
89+
and sparse member encodings (e.g. ``GNU.sparse`` extensions or ``S`` typeflag members).
8190

8291
.. _sdist-archive-features:
8392

0 commit comments

Comments
 (0)