From 9cd1f5ecda99ed09b2026c36b46c31eea8f90efc Mon Sep 17 00:00:00 2001 From: rmorshea Date: Thu, 18 May 2023 20:49:50 -0600 Subject: [PATCH] make build_lib first --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b682d58..82f476a 100644 --- a/setup.py +++ b/setup.py @@ -168,7 +168,11 @@ def build_with_pth_file(cmd: Command): pth_filename = f"{NAME}.pth" source_pth_file = ROOT_DIR / pth_filename - target_pth_file = Path(build_lib, pth_filename) + + build_lib = Path(build_lib) + build_lib.mkdir(parents=True, exist_ok=True) + target_pth_file = build_lib / pth_filename + cmd.copy_file(str(source_pth_file), str(target_pth_file))