os.curdir is already a str
@@ -1099,15 +1099,12 @@ def create_basic_sdist_for_package(
path.parent.mkdir(exist_ok=True, parents=True)
path.write_bytes(ensure_binary(files[fname]))
- # The base_dir cast is required to make `shutil.make_archive()` use
- # Unicode paths on Python 2, making it able to properly archive
- # files with non-ASCII names.
retval = script.scratch_path / archive_name
generated = shutil.make_archive(
retval,
'gztar',
root_dir=script.temp_path,
- base_dir=str(os.curdir),
+ base_dir=os.curdir,
)
shutil.move(generated, retval)
