Skip to content

Commit 8a59030

Browse files
committed
ENH: warn when special files in the source archive are ignored
1 parent db16bf8 commit 8a59030

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mesonpy/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,10 @@ def sdist(self, directory: Path) -> pathlib.Path:
10001000

10011001
sdist.addfile(member, file)
10021002

1003+
elif not member.isdir() and not member.issym():
1004+
warnings.warn(
1005+
f'special file in the source archive ignored: {member.name}', stacklevel=1)
1006+
10031007
# Add 'PKG-INFO'.
10041008
member = tarfile.TarInfo(f'{dist_name}/PKG-INFO')
10051009
member.uid = member.gid = 0

0 commit comments

Comments
 (0)