Skip to content

Commit 9cd1f5e

Browse files
committed
make build_lib first
1 parent c0e5613 commit 9cd1f5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ def build_with_pth_file(cmd: Command):
168168

169169
pth_filename = f"{NAME}.pth"
170170
source_pth_file = ROOT_DIR / pth_filename
171-
target_pth_file = Path(build_lib, pth_filename)
171+
172+
build_lib = Path(build_lib)
173+
build_lib.mkdir(parents=True, exist_ok=True)
174+
target_pth_file = build_lib / pth_filename
175+
172176
cmd.copy_file(str(source_pth_file), str(target_pth_file))
173177

174178

0 commit comments

Comments
 (0)