Skip to content

Commit 91bc99a

Browse files
committed
In sdist.prune_file_list, support build.build_base as a pathlib.Path.
Closes #4615
1 parent 971074d commit 91bc99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distutils/command/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def prune_file_list(self):
391391
build = self.get_finalized_command('build')
392392
base_dir = self.distribution.get_fullname()
393393

394-
self.filelist.exclude_pattern(None, prefix=build.build_base)
394+
self.filelist.exclude_pattern(None, prefix=os.fspath(build.build_base))
395395
self.filelist.exclude_pattern(None, prefix=base_dir)
396396

397397
if sys.platform == 'win32':

0 commit comments

Comments
 (0)