Skip to content

Commit

Permalink
In sdist.prune_file_list, support build.build_base as a pathlib.Path.
Browse files Browse the repository at this point in the history
Closes #4615
  • Loading branch information
jaraco committed Sep 3, 2024
1 parent 971074d commit 91bc99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/command/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def prune_file_list(self):
build = self.get_finalized_command('build')
base_dir = self.distribution.get_fullname()

self.filelist.exclude_pattern(None, prefix=build.build_base)
self.filelist.exclude_pattern(None, prefix=os.fspath(build.build_base))
self.filelist.exclude_pattern(None, prefix=base_dir)

if sys.platform == 'win32':
Expand Down

0 comments on commit 91bc99a

Please sign in to comment.