Skip to content

Commit

Permalink
MAINT: do not skip nonexistent file when building sdist
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnicolodi committed Feb 14, 2023
1 parent ba8ae5b commit 3fa0d33
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,6 @@ def sdist(self, directory: Path) -> pathlib.Path:

with tarfile.open(meson_dist_path, 'r:gz') as meson_dist, mesonpy._util.create_targz(sdist) as (tar, mtime):
for member in meson_dist.getmembers():
# skip the generated meson native file
if member.name == f'{meson_dist_name}/.mesonpy-native-file.ini':
continue

# calculate the file path in the source directory
assert member.name, member.name
member_parts = member.name.split('/')
Expand Down

0 comments on commit 3fa0d33

Please sign in to comment.