Skip to content

Commit bfbaba3

Browse files
dnicolodiFFY00
authored andcommitted
MAINT: do not skip nonexistent file when building sdist
The native file is not intended to be added to version control, thus it should never have be present in the dist archive prepared by Meson. With it moved to the build directory there is no risk of it ever being present.
1 parent 0cd2039 commit bfbaba3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mesonpy/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,10 +1026,6 @@ def sdist(self, directory: Path) -> pathlib.Path:
10261026

10271027
with tarfile.open(meson_dist_path, 'r:gz') as meson_dist, mesonpy._util.create_targz(sdist) as (tar, mtime):
10281028
for member in meson_dist.getmembers():
1029-
# skip the generated meson native file
1030-
if member.name == f'{meson_dist_name}/.mesonpy-native-file.ini':
1031-
continue
1032-
10331029
# calculate the file path in the source directory
10341030
assert member.name, member.name
10351031
member_parts = member.name.split('/')

0 commit comments

Comments
 (0)