Skip to content

Commit 738c9f0

Browse files
committed
Update on "mkdir when destination directory doesn't exist"
Fixes #8980 Make sure we mkdir if destination directory doesn't exist. I have no idea why it doesn't work before cc lucylq [ghstack-poisoned]
1 parent 08467a1 commit 738c9f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,8 @@ def build_extension(self, ext: _BaseExtension) -> None:
464464

465465
# Ensure that the destination directory exists.
466466
if not dst_file.parent.exists():
467-
print(f"DEBUG 1: dest parent directory {dst_file.parent}, exists? {dst_file.parent.exists()}")
468467
self.mkpath(os.fspath(dst_file.parent))
469-
print(f"DEBUG 2: dest parent directory {dst_file.parent}, exists? {dst_file.parent.exists()}")
470-
468+
471469
# Copy the file.
472470
self.copy_file(os.fspath(src_file), os.fspath(dst_file))
473471

0 commit comments

Comments
 (0)