Skip to content

Commit 7998637

Browse files
committed
ENH: warn when special files in the source archive are ignored
1 parent dd2999e commit 7998637

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesonpy/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ def sdist(self, directory: Path) -> pathlib.Path:
999999

10001000
sdist.addfile(member, file)
10011001

1002+
else:
1003+
warnings.warn(f'special file in the source archive ignored: {member.name}')
1004+
10021005
# Add 'PKG-INFO'.
10031006
member = tarfile.TarInfo(f'{dist_name}/PKG-INFO')
10041007
member.uid = member.gid = 0

0 commit comments

Comments
 (0)